Open fveracoechea opened 3 years ago
@franciscoemanuel Any idea where that "f" character comes from in the gql output?
@rijkvanzanten well, I was looking at the gql schema and I found on the DirectusUsersFilter
type that there are some attributes that start with a number 2
Hello, First of all, I just want to say thanks for developing and maintaining such a great open source project!
I was trying to use Graphql Code Generator to generate some Typescript types and react hooks.
I successfully downloaded the schema using this command:
get-graphql-schema https://my-project.com/directus/gql?access_token=API_TOKEN > ./graphql/schema.gql
Then, when I ran the graphql-code-generator command I've got this issue:fveracoechea@MacBook-Pro ~/Code/fveracoechea-website master ● yarn codegenyarn run v1.22.4$ graphql-codegen --config codegen.yml ✔ Parse configuration ❯ Generate outputs ❯ Generate ./graphql/codegen.tsx ✖ Load GraphQL schemas → Failed to load schema Load GraphQL documents Generate
Found 1 error
✖ ./graphql/codegen.tsx Failed to load schema from ./graphql/schema.gql:
Something went wrong error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.