Use case: I am trying to write a database application. The GraphQL models contains two categories of fields: 'Properties' (table fields) and 'Navigation properties' (related records). All 'Properties' are retrieved from database in one request (cheap operation) but the 'Navigation properties' should be retrieved from the database only if specified in the query (on demand) as this may be expensive on resources. I have difficulties in retrieving 'Navigation properties'.
Please find below the code that exemplifies the problem:
This issue was originally created by @marianc here, before being automatically moved: https://github.com/angel-dart-archive/graphql/issues/42
Use case: I am trying to write a database application. The GraphQL models contains two categories of fields: 'Properties' (table fields) and 'Navigation properties' (related records). All 'Properties' are retrieved from database in one request (cheap operation) but the 'Navigation properties' should be retrieved from the database only if specified in the query (on demand) as this may be expensive on resources. I have difficulties in retrieving 'Navigation properties'.
Please find below the code that exemplifies the problem:
pubspec.yaml
bin/server.dart
When I use the following query (http://localhost:3000/graphiql):
... an error is raised, indicating that that there was no attempt to retrieve 'actors' field using its resolver.
I am not sure if this is a bug or the intended behavior. If this is the intended behavior what is the recommended solution for this kind of problem ?
Thank you for your help.