-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose generated types using global module (#31)
* expose generated types using global module fix multi-projects types name conflicts fix operations name conflicts expose UnionToArray util type update README * upgrade to 1.4.0
- Loading branch information
Showing
29 changed files
with
398 additions
and
288 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ const { data: abc } = useQuery( | |
user(id: $id) { | ||
id | ||
name | ||
} | ||
} | ||
users { | ||
id | ||
} | ||
|
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ type User { | |
|
||
enum OAuthProvider { | ||
} | ||
|
||
type Auth { | ||
|
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,31 @@ | ||
type User { | ||
id: ID! | ||
name: String! | ||
} | ||
|
||
enum OAuthProvider { | ||
} | ||
|
||
type Auth { | ||
id: ID! | ||
accessToken: String! | ||
user: User! | ||
} | ||
|
||
type Query { | ||
users: [User!]! | ||
user(id: ID!): User! | ||
authByGoogle(code: String!): Auth! | ||
} | ||
|
||
type Mutation { | ||
updateUser(updateUserInput: UpdateUserInput!): User! | ||
} | ||
|
||
input UpdateUserInput { | ||
id: Int! | ||
name: String! | ||
picture: String | ||
} |
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 @@ | ||
// @ts-gql Catalog | ||
// @ts-gql Profile | ||
|
||
import { UnionToArray } from 'ts-gql-plugin'; | ||
|
||
export const provider: TsGql.CatalogOAuthProvider = 'FACEBOOK'; | ||
|
||
export const providerList: UnionToArray<TsGql.CatalogOAuthProvider> = [ | ||
'GOOGLE', | ||
'FACEBOOK', | ||
]; |
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
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
Oops, something went wrong.
75413b6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"with ts-gql-plugin" vs "without ts-gql-plugin" Benchmark
performance impact %: "with ts-gql-plugin" vs "without ts-gql-plugin"
22.93
% (±1.07%
)23.01
% (±6.90%
)1.00
This comment was automatically generated by workflow using github-action-benchmark.