RootQuery
Entry point for all read operations. Fields are grouped into documentation categories with the @doc directive
type RootQuery {
activities(
ids: [ID]
page: Int = 1
per_page: Int = 20
sort: [ActivitiesSortInput!]
uuids: [String]
): ActivityStreamsActivityCollection
admin_api_call_notifications(
filter: ApiCallNotificationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [ApiCallNotificationsSortInput!]
): ApiCallNotificationCollection!
admin_assets(
filter: QueryAssetsFilterInput
page: Int = 1
per_page: Int = 20
sort: [AssetsSortInput!]
): AssetCollection!
admin_assets_listing(id: ID!): AssetsListing!
admin_authorization_policies(
filter: AuthorizationPoliciesFilterInput
page: Int = 1
per_page: Int = 20
sort: [AuthorizationPoliciesSortInput!]
): AuthorizationPolicyCollection!
admin_background_jobs(
filter: BackgroundJobsFilterInput
page: Int = 1
per_page: Int = 20
sort: [BackgroundJobsSortInput!]
): BackgroundJobCollection!
admin_current_instance: Instance!
admin_email_notifications(
filter: EmailNotificationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [EmailNotificationsSortInput!]
): EmailNotificationCollection!
admin_form_configurations(
filter: FormConfigurationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [FormConfigurationsSortInput!]
): FormConfigurationCollection!
admin_forms(
filter: FormsFilterInput
page: Int = 1
per_page: Int = 20
sort: [FormsSortInput!]
): FormCollection!
admin_graphql(
filter: GraphqlFilterInput
page: Int = 1
per_page: Int = 20
sort: [GraphqlSortInput!]
): GraphQueryCollection!
admin_instance_metrics: InstanceMetrics!
admin_liquid_layouts(
filter: LiquidLayoutsFilterInput
page: Int = 1
per_page: Int = 20
sort: [LiquidLayoutsSortInput!]
): LiquidLayoutCollection!
admin_liquid_partials(
filter: LiquidPartialsFilterInput
page: Int = 1
per_page: Int = 20
sort: [LiquidPartialsSortInput!]
): LiquidPartialCollection!
admin_logs(filter: LogsFilterInput, per_page: Int): [AdminLogEntry!]!
admin_model_schemas(
filter: ModelSchemasFilterInput
page: Int = 1
per_page: Int = 20
sort: [ModelSchemasSortInput!]
): ModelSchemaCollection!
admin_pages(
exclude: Boolean
filter: PageFilterInput
has_key: String
metadata: String
name: String
page: Int = 1
per_page: Int = 20
sort: [PagesSortInput!]
value: String
): PageCollection!
admin_search_index(search_index: String!): HashObject
admin_search_index_rc(search_index: String!): HashObject
admin_sent_notifications(
filter: SentNotificationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [SentNotificationsSortInput!]
): SentNotificationCollection!
admin_sms_notifications(
filter: SmsNotificationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [SmsNotificationsSortInput!]
): SmsNotificationCollection!
admin_tables(
filter: TablesFilterInput
page: Int = 1
per_page: Int = 20
sort: [TablesSortInput!]
): TableCollection!
admin_third_party_integrations(
filter: ThirdPartyIntegrationsFilterInput
page: Int = 1
per_page: Int = 20
sort: [ThirdPartyIntegrationsSortInput!]
): ThirdPartyIntegrationCollection!
admin_transactable_schemas(
filter: TransactableSchemasFilterInput
page: Int = 1
per_page: Int = 20
sort: [TransactableSchemasSortInput!]
): TransactableSchemaCollection!
admin_user_profile_schemas(
filter: UserProfileSchemasFilterInput
page: Int = 1
per_page: Int = 20
sort: [UserProfileSchemasSortInput!]
): UserProfileSchemaCollection!
admin_user_schema: UserSchema!
admin_versions(
filter: VersionFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int = 20
sort: [VersionSortInput!]
): VersionCollection!
cms_discovery(types: [CMSItemType]): CMSItemDefinitionCollection
cms_items(
page: Int = 1
per_page: Int
type: CMSItemType!
): CMSItemPayloadCollection
constant(filter: EncryptedConstantFilterInput): EncryptedConstant
constants(
filter: EncryptedConstantsFilterInput
page: Int = 1
per_page: Int = 20
sort: [EncryptedConstantsSortInput!]
): EncryptedConstantCollection!
current_user: User
custom_attribute_definition(name: String!): CustomAttributeDefinition
customization(id: ID, name: String): Customization
customizations(
aggregations: [ListingAggregation]
created_at: DateRange
custom_model_type: QueryCustomModelType
customizable_id: ID
customizable_ids: [ID]
customizable_type: String
external_id: ID
external_ids: [ID]
id: ID
ids: [ID]
is_deleted: Boolean
model_schema: QueryModelSchema
name: String
names: [String]
page: Int = 1
per_page: Int = 20
properties: [QueryCustomAttribute]
query: Query
sort: [SortOrder]
updated_at: DateRange
user_id: ID
user_ids: [ID]
without_ids: [ID]
without_names: [String]
): ListingsCustomizationCollection!
data_exports(
filter: DataExportsFilterInput
page: Int = 1
per_page: Int = 20
sort: [DataExportsSortInput!]
): DataExportCollection!
documents(
aggregations: [ListingAggregation]
filter: [IndexSearchFilterInput!]
page: Int = 1
per_page: Int!
query: IndexSearchQuery
search_index: String!
sort: [IndexSearchSortInput!]
): IndexSearchCollection!
documents_rc(
aggregations: [ListingAggregation]
filter: [IndexSearchFilterInput!]
page: Int = 1
per_page: Int!
query: IndexSearchQuery
search_index: String!
sort: [IndexSearchSortInput!]
): IndexSearchCollection!
embeddings(
filter: EmbeddingsFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int!
sort: [EmbeddingsSortInput!]
): EmbeddingCollection!
embeddings_rc(
filter: EmbeddingsFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int!
sort: [EmbeddingsSortInput!]
): EmbeddingCollection!
feeds: [ActivityStreamsFeed]
handlers(page: Int = 1, per_page: Int = 20): ActivityStreamsHandlerCollection
images(
filter: ImagesFilterInput
page: Int = 1
per_page: Int!
sort: [ImagesSortInput!]
): CustomImageCollection!
instance: Instance
listings(
aggregations: [ListingAggregation]
geo_query: GeoQuery
listing: QueryListing
page: Int = 1
per_page: Int = 20
query: Query
sort: [SortOrder]
): ListingCollection!
login_providers: [String]
model(id: ID, name: String): Customization
models(
filter: ModelsFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int!
sort: [ModelsSortInput!]
): ModelCollection!
pages(
exclude: Boolean
filter: PageFilterInput
has_key: String
metadata: String
name: String
page: Int = 1
per_page: Int = 20
sort: [PagesSortInput!]
value: String
): PageCollection!
people(
aggregations: [ListingAggregation]
geo_query: GeoQuery
page: Int = 1
per_page: Int = 20
query: Query
sort: [SortOrder]
user: QueryUser
): UserListingCollection!
records(
filter: RecordsFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int!
sort: [RecordsSortInput!]
): RecordCollection!
remote_records(
endpoint: Endpoint!
filter: RecordsFilterInput
page: Int = 1
per_page: Int!
sort: [RecordsSortInput!]
): RecordCollection!
remote_users(
endpoint: Endpoint!
filter: UsersFilterInput
page: Int = 1
per_page: Int!
sort: [UsersSortInput!]
): UserCollection!
request: HTTPRequestContext
streams(
feed_id: ID
feed_name: String
feed_type: String!
page: Int = 1
per_page: Int = 20
reset_last_read: Boolean = true
): ActivityStreamsActivityStreamCollection
transactable(creator_id: ID, id: ID, slug: String): Transactable!
transactable_type(id: ID, name: String): TransactableType
transactable_types(ids: [ID], names: [String]): [TransactableType]
transactables(page: Int = 1, per_page: Int = 20): TransactableCollection!
user(
email: String
external_id: String
id: ID
is_deleted: Boolean
options: QueryOptionsInput
slug: String
): User
users(
filter: UsersFilterInput
options: QueryOptionsInput
page: Int = 1
per_page: Int!
sort: [UsersSortInput!]
): UserCollection!
}
Fields
activities (ActivityStreamsActivityCollection)
Returns activities published to activity feeds, looked up by id or uuid
-
ids(ID)
Returns only activities with one of these ids
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(ActivitiesSortInput)
Sort order of the results. When several entries are given, they are applied
in the given order. Results are additionally sorted by id ascending unless
id (or random) is part of the sort
-
uuids(String)
Returns only activities with one of these uuids, in the order the uuids are given
admin_api_call_notifications (ApiCallNotificationCollection)
Returns API call notifications (app/api_calls) of the instance, sorted by name
unless sort is given. Files from the private directories of modules are not included.
-
filter(ApiCallNotificationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
Sort order of the results. When several entries are given, they are applied in the given order
admin_assets (AssetCollection)
Returns assets (app/assets) of the instance, sorted by name unless sort is
given. Soft deleted assets are included only when filtering by deleted_at.
Assets from the private directories of modules are not included.
-
filter(QueryAssetsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(AssetsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_assets_listing (AssetsListing)
Returns an asset listing generated in the background by the
admin_assets_listing_create mutation: its status and, once done, the URLs of
the manifests of public and private assets.
-
id(ID)
ID returned by the admin_assets_listing_create mutation
admin_authorization_policies (AuthorizationPolicyCollection)
Returns authorization policies (app/authorization_policies) of the instance,
sorted by name unless sort is given. Files from the private directories of
modules are not included.
-
filter(AuthorizationPoliciesFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
Sort order of the results. When several entries are given, they are applied in the given order
admin_background_jobs (BackgroundJobCollection)
Returns background jobs of the instance that are scheduled (default), waiting
for a retry, dead or running, depending on filter.type. Without sort,
scheduled, retry and dead jobs are listed by timestamp. Only the first 50
pages of up to 100 jobs each can be retrieved.
-
filter(BackgroundJobsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one
returns an empty results list. Maximum 50, higher values are treated as 50
-
per_page(Int)
Number of results per page, must be greater than 0. Maximum 100, higher values are treated as 100
-
sort(BackgroundJobsSortInput)
Sort order of the results. Fields are applied one after another, so the last one given determines the order
admin_current_instance (Instance)
Returns the instance serving the request: its id, name, timestamps and feature flags
admin_email_notifications (EmailNotificationCollection)
Returns email notifications (app/emails) of the instance, sorted by name
unless sort is given. Files from the private directories of modules are not included.
-
filter(EmailNotificationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(EmailNotificationsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_form_configurations (FormConfigurationCollection)
Returns forms of the instance. Deprecated, use admin_forms instead
-
filter(FormConfigurationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(FormConfigurationsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_forms (FormCollection)
Returns forms (app/forms) of the instance. Deprecated, use pages with GraphQL mutations instead
-
filter(FormsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(FormsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_graphql (GraphQueryCollection)
Returns GraphQL queries and mutations stored in the instance (app/graphql),
sorted by name unless sort is given. Files from the private directories of
modules are not included.
-
filter(GraphqlFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(GraphqlSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_instance_metrics (InstanceMetrics)
Returns the current number of records, users, user profiles, images,
attachments, addresses, activities and transactables stored in the instance.
Soft deleted items are not counted
admin_liquid_layouts (LiquidLayoutCollection)
Returns Liquid layouts (app/views/layouts) of the instance, sorted by path
unless sort is given. Files from the private directories of modules are not included.
-
filter(LiquidLayoutsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(LiquidLayoutsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_liquid_partials (LiquidPartialCollection)
Returns Liquid partials (app/views/partials and app/lib) of the instance,
sorted by path unless sort is given. Files from the private directories of
modules are not included.
-
filter(LiquidPartialsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(LiquidPartialsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_logs (AdminLogEntry)
Returns entries of the instance log (what pos-cli logs streams), oldest first.
Without a lower id bound it returns the latest matching entries; with filter:
{ id: { range: { gt: <id of the last entry seen> } } } only entries newer than
that one. Conditions on type or message are checked against the most recent
part of the log only.
-
filter(LogsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
per_page(Int)
Maximum number of entries to return, between 1 and 500. Defaults to 20, or to 500 with a lower id bound
admin_model_schemas (ModelSchemaCollection)
Returns model schemas, the former name of tables. Deprecated, use admin_tables instead
-
filter(ModelSchemasFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(ModelSchemasSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_pages (PageCollection)
Returns pages (app/views/pages) of the instance, newest first unless sort is
given. Soft deleted pages are included only when filtering by deleted_at.
Files from the private directories of modules are not included.
-
exclude(Boolean)
Deprecated, negates the metadata, has_key and value conditions. Use filter: { metadata: { exclude: $exclude } }
-
filter(PageFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
has_key(String)
Deprecated, use filter: { metadata: { has_key: $key } }
-
metadata(String)
Deprecated, use filter: { metadata: { contains: $text } }
-
name(String)
Deprecated, metadata key used together with value. Use filter: { metadata: {
attribute: { key: $name, value: $value } } }
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(PagesSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
-
value(String)
Deprecated, use filter: { metadata: { attribute: { key: $key, value: $value } } }. Requires name
admin_search_index (HashObject)
Returns the field mapping of the search index of the instance, as configured with search_indexes in app/config.yml
-
search_index(String)
Name of the search index. Currently not used: the mapping of the configured index is returned
admin_search_index_rc (HashObject)
Deprecated alias of admin_search_index
-
search_index(String)
Name of the search index. Currently not used: the mapping of the configured index is returned
admin_sent_notifications (SentNotificationCollection)
Returns the log of notifications (emails, SMS, API calls) sent by the instance
-
filter(SentNotificationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(SentNotificationsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_sms_notifications (SmsNotificationCollection)
Returns SMS notifications (app/smses) of the instance, sorted by name unless
sort is given. Files from the private directories of modules are not included.
-
filter(SmsNotificationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(SmsNotificationsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_tables (TableCollection)
Returns table definitions (app/schema) of the instance, sorted by name unless
sort is given. Files from the private directories of modules are not included.
-
filter(TablesFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(TablesSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_third_party_integrations (ThirdPartyIntegrationCollection)
Returns third party integrations configured for the instance, sorted by type unless sort is given
-
filter(ThirdPartyIntegrationsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
Sort order of the results. When several entries are given, they are applied in the given order
admin_transactable_schemas (TransactableSchemaCollection)
Returns legacy transactable schemas. Deprecated, use admin_tables instead
-
filter(TransactableSchemasFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(TransactableSchemasSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_user_profile_schemas (UserProfileSchemaCollection)
Returns legacy user profile schemas. Deprecated, use admin_tables instead
-
filter(UserProfileSchemasFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(UserProfileSchemasSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
admin_user_schema (UserSchema)
Returns the user schema of the instance: the properties defined for users in app/user.yml
admin_versions (VersionCollection)
Returns the change history of records, users and user profiles from the last 7
days, newest first unless sort is given. Each version holds the state of the
object before the change.
-
filter(VersionFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(VersionSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
cms_discovery (CMSItemDefinitionCollection)
Returns definitions of the CMS item types of the instance. Deprecated, use the admin_* queries instead
-
types(CMSItemType)
CMS item types to return; all when omitted
cms_items (CMSItemPayloadCollection)
Returns CMS items of the given type. Deprecated, use the admin_* queries instead
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
type(CMSItemType)
Type of CMS items to return
constant (EncryptedConstant)
Returns a single constant with its decrypted value. Deprecated, use constants instead
-
filter(EncryptedConstantFilterInput)
Conditions the constant must match
constants (EncryptedConstantCollection)
Returns constants of the instance (set with constant_set or pos-cli constants)
with their decrypted values, sorted by name unless sort is given
-
filter(EncryptedConstantsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(EncryptedConstantsSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
current_user (User)
Returns the user signed in for the current request, or null when nobody is signed in
custom_attribute_definition (CustomAttributeDefinition)
Returns the definition of a property by name. Deprecated, use the admin_* queries instead
-
name(String)
Name of the property
customization (Customization)
Returns a single record. Deprecated, use records instead
-
id(ID)
Unique identifier of the object
-
name(String)
Name of the table the record belongs to
customizations (ListingsCustomizationCollection)
Searches records in the search index. Deprecated, use records instead
-
aggregations(ListingAggregation)
Aggregations to calculate over the matching records
-
created_at(DateRange)
Range of creation time
-
custom_model_type(QueryCustomModelType)
Deprecated, use model_schema
-
customizable_id(ID)
Id of the object the records belong to
-
customizable_ids(ID)
Ids of the objects the records belong to
-
customizable_type(String)
Type of the object the records belong to
-
external_id(ID)
Returns only the record with this external id
-
external_ids(ID)
Returns only records with one of these external ids
-
id(ID)
Returns only the record with this id
-
ids(ID)
Returns only records with one of these ids
-
is_deleted(Boolean)
When true, returns only soft deleted records
-
model_schema(QueryModelSchema)
Conditions on the table of the records
-
name(String)
Name of the table
-
names(String)
Names of the tables
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
properties(QueryCustomAttribute)
Conditions on record properties
-
query(Query)
Full-text search query
-
sort(SortOrder)
Sort order of the results. When several entries are given, they are applied in the given order
-
updated_at(DateRange)
Range of last update time
-
user_id(ID)
Returns only records owned by this user
-
user_ids(ID)
Returns only records owned by one of these users
-
without_ids(ID)
Ids of records to exclude from results
-
without_names(String)
Names of the tables whose records are excluded from results
data_exports (DataExportCollection)
Returns data exports of the instance (created with the data_export mutation or
pos-cli data export), most recently updated first. Once an export is done it
holds the URL of the exported file.
-
filter(DataExportsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(DataExportsSortInput)
Additional sort order, applied after the default most recently updated first
documents (IndexSearchCollection)
Searches documents in the custom search index of the instance (configured with
search_indexes in app/config.yml and filled with documents_insert,
documents_upsert and documents_bulk_upsert) by full-text query, filters and aggregations.
-
aggregations(ListingAggregation)
Aggregations (e.g. counts of documents per field value) to calculate over the matching documents
-
filter(IndexSearchFilterInput)
Conditions on document fields. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. page multiplied by per_page cannot
exceed the result window of the search index; within it, a page beyond the
last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
query(IndexSearchQuery)
Full-text search query
-
search_index(String)
Name of the search index the documents were inserted with
-
sort(IndexSearchSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
documents_rc (IndexSearchCollection)
Deprecated alias of documents
-
aggregations(ListingAggregation)
Aggregations (e.g. counts of documents per field value) to calculate over the matching documents
-
filter(IndexSearchFilterInput)
Conditions on document fields. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. page multiplied by per_page cannot
exceed the result window of the search index; within it, a page beyond the
last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
query(IndexSearchQuery)
Full-text search query
-
search_index(String)
Name of the search index the documents were inserted with
-
sort(IndexSearchSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
embeddings (EmbeddingCollection)
Returns embeddings (vectors with their content and metadata) stored in the
instance. Sort by embedding distance to find the entries nearest to a given vector.
-
filter(EmbeddingsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(EmbeddingsSortInput)
Sort order of the results. Only sorting by embedding distance is applied
embeddings_rc (EmbeddingCollection)
Deprecated alias of embeddings
-
filter(EmbeddingsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(EmbeddingsSortInput)
Sort order of the results. Only sorting by embedding distance is applied
feeds (ActivityStreamsFeed)
Returns all activity feeds of the instance: each feed type with the ids of its feeds
handlers (ActivityStreamsHandlerCollection)
Returns activity handlers (app/activity_streams/handlers), which decide to which feeds a published activity is added
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
images (CustomImageCollection)
Returns legacy image uploads. Deprecated, use upload properties instead
-
filter(ImagesFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(ImagesSortInput)
Sort order of the results. When several entries are given, they are applied
in the given order. Results are additionally sorted by id ascending unless
id (or random) is part of the sort
instance (Instance)
Returns the current instance. Deprecated, use admin_current_instance instead
listings (ListingCollection)
Searches legacy transactables in the search index. Deprecated, use records instead
-
aggregations(ListingAggregation)
Aggregations to calculate over the matching transactables
-
geo_query(GeoQuery)
Geo search query. Deprecated
-
listing(QueryListing)
Conditions on the transactables
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
query(Query)
Full-text search query
-
sort(SortOrder)
Sort order of the results. When several entries are given, they are applied in the given order
login_providers (String)
Returns the names of configured social login providers. Deprecated
model (Customization)
Returns a single record. Deprecated, use records instead
-
id(ID)
Unique identifier of the object
-
name(String)
Name of the table the record belongs to
models (ModelCollection)
Returns records under their former name, models. Soft deleted ones are
included only when filtering by deleted_at. Deprecated, use records instead
-
filter(ModelsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(ModelsSortInput)
Sort order of the results. When several entries are given, they are applied
in the given order. Results are additionally sorted by id ascending unless
id (or random) is part of the sort
pages (PageCollection)
Returns pages of the instance. Deprecated, use admin_pages instead
-
exclude(Boolean)
Deprecated, negates the metadata, has_key and value conditions. Use filter: { metadata: { exclude: $exclude } }
-
filter(PageFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
has_key(String)
Deprecated, use filter: { metadata: { has_key: $key } }
-
metadata(String)
Deprecated, use filter: { metadata: { contains: $text } }
-
name(String)
Deprecated, metadata key used together with value. Use filter: { metadata: {
attribute: { key: $name, value: $value } } }
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(PagesSortInput)
Sort order of the results. When several entries are given, they are applied in the given order
-
value(String)
Deprecated, use filter: { metadata: { attribute: { key: $key, value: $value } } }. Requires name
people (UserListingCollection)
Searches users in the search index. Deprecated, use users instead
-
aggregations(ListingAggregation)
Aggregations to calculate over the matching users
-
geo_query(GeoQuery)
Geo search query
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
query(Query)
Full-text search query
-
sort(SortOrder)
Sort order of the results. When several entries are given, they are applied in the given order
-
user(QueryUser)
Conditions on the users
records (RecordCollection)
Returns records stored in tables of the instance. Soft deleted records are included only when filtering by deleted_at.
-
filter(RecordsFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(RecordsSortInput)
Sort order of the results. When several entries are given, they are applied
in the given order. Results are additionally sorted by id ascending unless
id (or random) is part of the sort
remote_records (RecordCollection)
Returns records fetched from a remote endpoint. Sends a GET request to the
endpoint with filter, sort, page and per_page as query parameters and expects
a JSON response shaped like a records collection. An endpoint on a domain of
this platform is rendered directly. Not available in requests sent by another
platformOS instance. A failed request is logged and returns no results.
-
endpoint(Endpoint)
Endpoint that returns the records as JSON
-
filter(RecordsFilterInput)
Conditions the returned results must match. All conditions are combined with AND. Passed to the endpoint
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(RecordsSortInput)
Sort order passed to the endpoint
remote_users (UserCollection)
Returns users fetched from a remote endpoint. Sends a GET request to the
endpoint with filter, sort, page and per_page as query parameters and expects
a JSON response shaped like a users collection. An endpoint on a domain of
this platform is rendered directly. Not available in requests sent by another
platformOS instance. A failed request is logged and returns no results.
-
endpoint(Endpoint)
Endpoint that returns the users as JSON
-
filter(UsersFilterInput)
Conditions the returned results must match. All conditions are combined with AND. Passed to the endpoint
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(UsersSortInput)
Sort order passed to the endpoint
request (HTTPRequestContext)
Returns details of the current HTTP request. Deprecated, use context.headers and context.params in Liquid instead
streams (ActivityStreamsActivityStreamCollection)
Returns activities of a single activity feed, together with the number of unread activities
-
feed_id(ID)
Id of the feed within its type, usually the id of the object that owns it. Either feed_id or feed_name is required
-
feed_name(String)
Deprecated, use feed_id
-
feed_type(String)
Type of the feed, e.g. the type of the object that owns it
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
reset_last_read(Boolean)
When true, marks the feed as read, so the unread count is reset
transactable (Transactable)
Returns a single legacy transactable. Deprecated, use records instead
-
creator_id(ID)
Id of the user who created the transactable
-
id(ID)
Unique identifier of the object
-
slug(String)
Slug of the transactable
transactable_type (TransactableType)
Returns a legacy transactable type. Deprecated, use admin_tables instead
-
id(ID)
Unique identifier of the object
-
name(String)
Name of the transactable type
transactable_types (TransactableType)
Returns legacy transactable types. Deprecated, use admin_tables instead
-
ids(ID)
Ids of the transactable types
-
names(String)
Names of the transactable types
transactables (TransactableCollection)
Returns legacy transactables. Deprecated, use records instead
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
user (User)
Returns the first user matching all given arguments, or null when no argument
is given. Soft deleted users are included unless is_deleted is false.
Deprecated, use users instead
-
email(String)
Email of the user
-
external_id(String)
Identifier of the object in an external system. Used mainly for
import/export, when a third party service is the source of truth
-
id(ID)
Unique identifier of the object
-
is_deleted(Boolean)
True returns only soft deleted users, false only not deleted ones
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
slug(String)
Slug of the user
users (UserCollection)
Returns users of the instance. Soft deleted users are included only when filtering by deleted_at.
-
filter(UsersFilterInput)
Conditions the returned results must match. All conditions are combined with AND
-
options(QueryOptionsInput)
Per-query execution options, such as reading from the read replica or a custom database timeout
-
page(Int)
Page number to return, starting at 1. Requesting a page beyond the last one returns an empty results list
-
per_page(Int)
Number of results per page, must be greater than 0
-
sort(UsersSortInput)
Sort order of the results. When several entries are given, they are applied
in the given order. Results are additionally sorted by id ascending unless
id (or random) is part of the sort