Anchor to savedSearchCreatesaved
savedSearchCreate
mutation
Creates a saved search.
Anchor to Arguments
Arguments
- Anchor to inputinput•Saved
Search requiredCreate Input! Specifies the input fields for a saved search.
Was this section helpful?
Anchor to SavedSearchCreatePayload returnsSavedSearchCreatePayload returns
- Anchor to savedSearchsaved•
Search The saved search that was created.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation savedSearchCreate($input: SavedSearchCreateInput!) {2 savedSearchCreate(input: $input) {3 savedSearch {4 # SavedSearch fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "input": {3 "name": "<your-name>",4 "query": "<your-query>",5 "resourceType": ""6 }7}
{
"input": {
"name": "<your-name>",
"query": "<your-query>",
"resourceType": ""
}
}
input SavedSearchCreateInput {
name: String!
query: String!
resourceType: SearchResultType!
}