I get this error while querying:
"Cannot return null for non-nullable field Transaction.createdAt."
This is the query:
query getMyTransactions {
getMyTransactions {
id
createdAt
}
}
The schema for this query is:
extend type Transaction @key(fields: "id") {
id: ID! @external
}
type Query {
getMyTransactions: [Transaction!]!
}
And the other schema has Transaction
type:
type Transaction @key(fields: "id") {
id: ID!
createdAt: String!
}
What's the problem?
EDIT: If I query for:
getMyTransactions {
id
}
Works ok I and get all the id
of the query, but if I include another attribute the query fails.