Slide 6
Slide 6 text
Copyright ©2023 Cequence Security | ALL RIGHTS RESERVED
QUERY
A query is used to retrieve
data from a GraphQL server. It
is analogous to a GET request in
a REST API. A query consists of
a set of fields that define the
data that the client wants to
fetch from the server.
A mutation is used to modify
data on a GraphQL server. It is
analogous to a POST, PUT, or
DELETE request in a REST API. A
mutation consists of a set of
input arguments and fields that
define the data that the client
wants to change on the server.
A subscription is used to receive
real-time updates from a
GraphQL server. It is similar to a
query, but instead of returning a
single result, a subscription
returns a stream of data that is
sent to the client whenever the
server's data changes.
MUTATION SUBSCRIPTION