Skip to content

[BUG] Hasura data provider not using meta.gqlVariables #6775

Open
@thanaParis

Description

@thanaParis

Describe the bug

When using the Hasura data provider, meta.gqlVariables is used for getOne, getMany, and getList, but not for any other queries. This prevents, for example, useForm's mutationMeta.gqlVariables from applying.

Steps To Reproduce

  1. Add gqlVariables object with variables defined inside to the meta field of any hook which uses create, update, or delete, alongside a gql operation (meta.gqlQuery or meta.gqlMutation)
  2. Expectation: gqlVariables are passed to the gql operation, reality: they usually are not

Expected behavior

when using a meta gql operation such as gqlQuery or gqlMutation, meta.gqlVariables should always be passed to the operation.

Packages

  • @refinedev/hasura

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions