Skip to content

TypeDefinition 'Deposit' not found in parsed GraphQL schema. #1237

Answered by ra0x3
chlenc asked this question in Q&A
Discussion options

You must be logged in to vote

@chlenc We made a breaking change in 0.19.0 to use proper/idiomatic GraphQL directives

The way things used to work:

type Deposit {
    id: ID!
    timestamp: UInt8!
    address: Address!
    amount: UInt8!
}

The way things work now (note that type definitions are decorated with the @entity directive

type Deposit @entity {
    id: ID!
    timestamp: UInt8!
    address: Address!
    amount: UInt8!
}

Let me know if this helps :)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ra0x3
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ra0x3
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1235 on August 09, 2023 15:00.