Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion guides/dynamic-query-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ hero_query = SWAPI::Client.parse <<-'GRAPHQL'
}
}
GRAPHQL
result = SWAPI::Client.query(HeroNameQuery, variables: { id: params[:id] })
result = SWAPI::Client.query(hero_query, variables: { id: params[:id] })
```

Parsing a query and validating a query on every request adds performance overhead. It also prevents validation errors from being discovered until request time, rather than when the query is parsed at startup.
Expand Down