haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Resolve field name before checking field arguments. Closes #81. #85

Closed teh closed 7 years ago

teh commented 7 years ago

Before this change we tried to read field arguments even if the query never requested the actual field itself. This is obviously wrong because we'd never supply arguments for fields we're not requesting.

Even if all fields were optionsal we'd still waste CPU cycles.