Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a documentation example for custom mutations #98

Open
gabrielpalladini opened this issue Apr 27, 2022 · 2 comments
Open

Comments

@gabrielpalladini
Copy link

gabrielpalladini commented Apr 27, 2022

I'm trying to use a custom mutation, but the dataprovider does some strange things to my query:

mutation UpdateValidityDateRangeByDiscountId($id: uuid!, $validityDateRange: daterange) {
  update_discount_by_pk(pk_columns: {id: $id}, _set: {validityDateRange: $validityDateRange}) {
    active
    code
    created_at
    discount
    id
    redemptionCount
    rules
    updated_at
    validityDateRange
    vatId
  } 
}

Console error:

Error: GraphQL error: field "update_discount_by_pk" not found in type: 'discount_expanded_validitydaterange'

I did not find any hints in the documentation why this could be happening. How would an appropriate mutation have to look like? Could you please provide some examples(documentation on how should a mutation look like).

Thanks

PS. Issue simular to #49 closed without answer.

@arjunyel
Copy link
Contributor

Ill try to create an example, in the meantime does this comment help at all? #70 (comment)

@DVGY
Copy link

DVGY commented Oct 18, 2023

An example will be very helpful

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

No branches or pull requests

3 participants