vtex-apps/store-graphql

Error "updateDocument" graphql mutation

Mecrano opened this issue · 1 comments

Documentation error "updateDocument" graphql mutation

Expected Behavior

Be able to update fields of a document of the masterdata given the id of the document

Current Behavior

At this time it is not possible to indicate which document I want to edit, however if the code is analyzed, it is ready to receive the document id

Possible Solution

I think the documentation is out of date or has an error, and that the validator graphql must be updated

Context

It is not possible to edit the fields of a document

Images:

  1. Request according to documentation:
    image

  2. Code in this repository (/vtex-apps/store-graphql/blob/master/node/clients/masterdata.ts):
    image

  3. Request according to code:
    image

It is decided to follow this issue from store-discussion in the following link:

vtex-apps/store-discussion#190