Mutation type in a GraphQL schema defines all the write operations that can change data. It is analogous to performing HTTP verbs such as
Mutations can take arguments as input similar to the body of a
POST request in REST. Like GraphQL queries, mutations can also return fields. This can be useful for fetching the new state of an object after an update.
To understand the use of the `createStockActivity' mutation, you can refer to this guide.
When performing the mutation
stock property of the related
Variant will be updated (added or removed) according to the movement made in that mutation.
This is the basic principle of stock management made by the Wino system.
|createStockActivity||StockActivity!||Creates a new stock activity.|
|input||InputStockActivity!||Specifies the fields to use when creating the stock activity.|
The type of this stock activity. Some types can increment the stock, others can decrement it or reset it.
The quantity associated to this stock activity.
A comment about this stock activity.
Represents the possible reasons why the
A unique identifier assigned to each activity.
The unit used in this stock activity.
The decimal accuracy of stock activity capacity.
The variant reference.
The device associated to this stock activity.
The shop associated to this stock activity.