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

[Feature] Live query params #30

@DanielMSchmidt

Description

@DanielMSchmidt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions