Skip to content

Commit

Permalink
Move schema.graphql file that is used everywhere to top dir
Browse files Browse the repository at this point in the history
Rename the file from schema.graphqls to schema.graphql because it seems
to be a little more common and it's somewhat confusing to have a
different extension. I don't expect we will put query files in the top
level of the repository. See for a discussion:
99designs/gqlgen#1047 .
  • Loading branch information
omarkohl committed Dec 1, 2022
1 parent 9f8747b commit 5d4d412
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cleoc/gqclient/genqlient.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Default genqlient config; for full documentation see:
# https://github.com/Khan/genqlient/blob/main/docs/genqlient.yaml
schema: ../../graph/schema.graphqls
schema: ../../schema.graphql
operations:
- genqlient.graphql
generated: generated.go
Expand Down
2 changes: 1 addition & 1 deletion cleosrv/gqlgen.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Where are all the schema files located? globs are supported eg src/**/*.graphqls
schema:
- graph/*.graphqls
- ../schema.graphql

# Where should the generated server code go?
exec:
Expand Down
2 changes: 1 addition & 1 deletion cleosrv/graph/generated/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/codegen.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CodegenConfig } from '@graphql-codegen/cli';

const config: CodegenConfig = {
schema: '../cleosrv/graph/schema.graphqls',
schema: '../schema.graphql',
documents: ['src/**/*.tsx'],
generates: {
'./src/__generated__/': {
Expand Down
File renamed without changes.

0 comments on commit 5d4d412

Please sign in to comment.