Playing with codegen
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -62,4 +62,6 @@ node_modules
|
||||
!.env.example
|
||||
.vercel
|
||||
.output
|
||||
dist
|
||||
dist
|
||||
.graphqlrc.yml
|
||||
codegen.yml
|
||||
|
||||
13
package.json
13
package.json
@@ -6,16 +6,27 @@
|
||||
"start": "vite",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"serve": "vite preview"
|
||||
"serve": "vite preview",
|
||||
"codegen": "graphql-codegen --config codegen.yml",
|
||||
"codegen:watch": "codegen -- --watch"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@graphql-codegen/cli": "2.12.0",
|
||||
"@graphql-codegen/introspection": "^2.2.1",
|
||||
"@graphql-codegen/typescript": "2.7.3",
|
||||
"@graphql-codegen/typescript-operations": "2.5.3",
|
||||
"@graphql-codegen/typescript-urql": "^3.6.4",
|
||||
"@graphql-codegen/urql-introspection": "2.2.1",
|
||||
"typescript": "^4.8.2",
|
||||
"urql": "^3.0.2",
|
||||
"vite": "^3.0.9",
|
||||
"vite-plugin-solid": "^2.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@solidjs/router": "^0.4.3",
|
||||
"@urql/core": "^3.0.3",
|
||||
"graphql": "^16.6.0",
|
||||
"solid-js": "^1.5.1"
|
||||
}
|
||||
}
|
||||
|
||||
6867
src/graphql/generated/graphql.schema.json
Normal file
6867
src/graphql/generated/graphql.schema.json
Normal file
File diff suppressed because it is too large
Load Diff
2911
src/graphql/generated/graphql.ts
Normal file
2911
src/graphql/generated/graphql.ts
Normal file
File diff suppressed because it is too large
Load Diff
31
src/graphql/queries/auth.graphql
Normal file
31
src/graphql/queries/auth.graphql
Normal file
@@ -0,0 +1,31 @@
|
||||
# mutation {
|
||||
# loginAction($arg1: LoginInput!) {
|
||||
# access_token
|
||||
# expires_in
|
||||
# refresh_expires_in
|
||||
# refresh_token
|
||||
# scope
|
||||
# session_state
|
||||
# token_type
|
||||
# }
|
||||
# }
|
||||
|
||||
query allUsers {
|
||||
user {
|
||||
id
|
||||
}
|
||||
}
|
||||
|
||||
query getUserByEmail($email: String!) {
|
||||
user(where: { email: { _eq: $email } }) {
|
||||
id,
|
||||
password
|
||||
}
|
||||
}
|
||||
|
||||
query getUserByUsername($username: String!) {
|
||||
user(where: { username: { _eq: $username } }) {
|
||||
id,
|
||||
password
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user