Reputation: 71
I have a AWS Amplify GraphQl project. A react application. In schema I have a model named "UserEntry". I want to write couple of queries. Let me share the model/schema first.
type UserEntry @model
@auth(rules: [
{ allow: owner }
]) {
id: ID!
puzzle_id: String
game_data: GameData
createdAt: AWSDateTime
status: GameStatus! @index(name: "byStatus", sortKeyFields: ["createdAt"])
}
Queries:
What are the necessary changes are required so that we can manage both the queries? Do we need to add more indexes?
Upvotes: 0
Views: 61