You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cloning the repo and updating package.json, running graph codegen --output-dir src/types/ throws an error:
GraphQL schema can't have List's with Nullable members.
Error in 'mints' field of type '[Mint]'.
Suggestion: add an '!' to the member type of the List, change from '[Mint]' to '[Mint!]'
Changing Transaction entities fields from:
mints: [Mint]!
burns: [Burn]!
swaps: [Swap]!
to :
mints: [Mint!]
burns: [Burn!]
swaps: [Swap!]
resolves the issue but complains about possible nullable objects in where the entities fields are used/imported at core.ts and helpers.ts
The text was updated successfully, but these errors were encountered:
[Mint]! means that the List itself can't be null, [Mint!] means that the List can be Nullable, but none of its members can, and [Mint!]! means that neither the List's members nor the List itself are Nullable.
[Mint]! means that the List itself can't be null, [Mint!] means that the List can be Nullable, but none of its members can, and [Mint!]! means that neither the List's members nor the List itself are Nullable.
After cloning the repo and updating package.json, running
graph codegen --output-dir src/types/
throws an error:Changing
Transaction
entities fields from:to :
resolves the issue but complains about possible nullable objects in where the entities fields are used/imported at
core.ts
andhelpers.ts
The text was updated successfully, but these errors were encountered: