Skip to content

[Epic] Client fields that return IDs #53

@rbalicki2

Description

@rbalicki2
  • Client fields currently are scalars, in the sense that you cannot use {}, as in my_client_field { ... }.
  • Client fields should be able to return IDs, in which case, you would be able to do best_friend_client_field { name }
  • This needs additional thought:
    • How do we enable lazy fetching? As in, we calculate best_friend_client_field, and then execute the operation node(id: $bestFriendId) { ... on User { name } }
    • Do we want to force the user to opt into this? (As in the @waterfall directive in Relay?)
  • The syntax I'm thinking of is pointer Type.fieldName to Type { ... }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions