Playing with codegen

This commit is contained in:
2022-09-04 00:31:55 +02:00
parent a5bf54f82d
commit d0b69d7ae1
6 changed files with 12559 additions and 15 deletions

2
.gitignore vendored
View File

@@ -63,3 +63,5 @@ node_modules
.vercel
.output
dist
.graphqlrc.yml
codegen.yml

View File

@@ -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"
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View 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
}
}

2748
yarn.lock

File diff suppressed because it is too large Load Diff