Skip to content

Prefetch: Remove "variables" field when no variables present #101

Closed
@jamilabreu

Description

@jamilabreu

Setting prefetch: true on a query with no variables sends a request with the following field

"variables" => true

Might it be better to either remove that field, or send an empty json object by default instead?

Using prefetch() { return {} } in my implementation at the moment.

cc: @benwilson512 for input on the absinthe-graphql side.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions