Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

[Feature] Live query params #30

Open
DanielMSchmidt opened this issue Sep 30, 2019 · 0 comments
Open

[Feature] Live query params #30

DanielMSchmidt opened this issue Sep 30, 2019 · 0 comments

Comments

@DanielMSchmidt
Copy link
Contributor

If you want to implement a query that reacts to changing inputs you currently have to retrigger the query with new query params. This means that you need to take care of writing your own caching / refetching logic for this. Instead, you could make it simpler by adding support for live query params that allow you to change the graphql query variables on the fly for certain params, without recreating a new observable

type Query {
  searchKittens($name: String!): [Kittens!]! @liveArgument("name")
}

Would give you an argument object like this { name: Observable<string> } in the resolver

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant