Relative Content

Tag Archive for graphql

Handling Field-Level Permissions in API Responses

I would like the API user to receive responses from the fields they have access to, and an error response for the rest. In the case of a directive, the entire query will return an error, even if the user has access to some fields. I know it is possible to implement the @include logic on the client side to skip certain fields in specific cases, but I would like to avoid this as it requires a lot of work (having to pass information to the client about what they have access to).

How does this GraphQl query looks when reverse engineered?

fragment rowHeader on GridRowEdge { …rowHeaderExpandIcon …addItemRow_gridRowEdge node { …rowHeader_Row id } } and fragment rowHeader_Row on GridRow { id path hasChildren pmEntity { id name model { id slug displayName { singular } } permissions { hasEdit } …pmEntityIcon …requirePmEntityUserPermissions } …pmEntityAccessIndicator_rowHeader } Is it possible to reconstruct the typedef of this query? My […]

Graphql query to get count based on filter

Hi All I’m new to Graphql Query , I have a requirement that need to get the count from table based on filter
For eg I have a user table need to know count no of male and no female and others using a single query any one please help me out on it