-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: test stdout for load logs * wip: refact to "basic" from "usual" * wip: add an option `silent` * wip: add a failing test * Add `silent` option * fix: Compare `silent` as some output or no output
- Loading branch information
1 parent
d3de6f3
commit ed73ee4
Showing
18 changed files
with
118 additions
and
31 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
schema: schema/type-defs.graphqls | ||
documents: | ||
- "**/*.graphql" | ||
- "**/*.tsx" | ||
plugins: | ||
- typescript | ||
- typescript-operations | ||
- typescript-react-apollo | ||
respectGitIgnore: true | ||
cacheDir: __generated__ | ||
silent: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { gql, load } from 'graphql-let'; | ||
|
||
const { useViewerQuery } = load('./viewer.graphql'); | ||
useViewerQuery().data.viewer.name as string; | ||
// @ts-expect-error | ||
useViewerQuery() as number; | ||
|
||
const { useViewerYQuery } = gql(` | ||
# import Partial from './partial.graphql' | ||
query ViewerY { | ||
viewer { | ||
...Partial | ||
} | ||
} | ||
`); | ||
useViewerYQuery().data.viewer.name as string; | ||
// @ts-expect-error | ||
useViewerYQuery() as number; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fragment Partial on User { | ||
id | ||
name | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# import Partial from './partial.graphql' | ||
query Viewer { | ||
viewer { | ||
...Partial | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# import Partial from './partial.graphql' | ||
query Viewer2 { | ||
viewer { | ||
...Partial | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type User { | ||
id: ID! | ||
name: String! | ||
status: String! | ||
} | ||
|
||
type Query { | ||
viewer: User | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters