GraphQuery
GraphQL query or mutation stored in the instance (app/graphql), run from Liquid with the graphql tag
type GraphQuery implements AdminSharedAttributesInterface {
created_at: JSONDate!
id: ID!
manually_managed: Boolean
metadata: HashObject
name: String!
physical_file_path: String
query_string: String!
updated_at: JSONDate!
}
Fields
created_at (JSONDate)
Timestamp of when the object was created, set automatically by the system
id (ID)
Unique identifier of the object
manually_managed (Boolean)
When true, the resource is managed outside of files: pos-cli deploy and sync never overwrite or delete it
metadata (HashObject)
Free-form data attached to the resource with the metadata key of its file (or the metadata argument of an admin mutation)
name (String)
Name used to run the query with the graphql tag: its file path below
app/graphql without the extension, for example users/search; module queries
are prefixed with modules/<module name>/
physical_file_path (String)
Path of the file the resource comes from, relative to the app directory, for
example views/pages/index.liquid or
modules/my_module/public/views/partials/header.liquid. Identifies the resource
in deploy, sync and admin mutations
query_string (String)
GraphQL source of the query or mutation
updated_at (JSONDate)
Timestamp of when the object was last updated, set automatically by the system
Interfaces
AdminSharedAttributesInterface
Attributes shared by resources that can be deployed from files with pos-cli
(pages, partials, layouts, notifications, authorization policies, schemas, assets etc.)