Skip to content

Conditionally skip REST calls #299

Open
@ryanrhee

Description

(accidentally hit enter, sorry!)

I have a nested @rest() field (e.g. author) in my graphql query that utilizes an @export()ed field (e.g. authorID) to make a query. Sometimes, the exported field is not set. In those cases, I don't want to make the REST call at all. (In this example, if the authorID is not present, calling /get_author doesn't make sense.)

A way to skip the query conditionally would fix this.

Same as #259.

Metadata

Assignees

No one assigned

    Labels

    featureFeature: new addition or enhancement to existing solutions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions