System fields
Some fields are system-generated. The system fields are read-only fields that provide information about the content or any related record from the system, like a Content item ID or when a content item was created or last changed. You can recognize system fields by the prefix _
.
Please see the full list of system fields below.
Content
_id
UUID
Unique identifier for each item.
__typename
string
At any point in a query __typename
can be requested to get the name of the object type returned.
_environment_id
string
Unique identifier of the Prepr environment.
_created_on
ISO 8601
UTC time at which the content item was created.
_changed_on
ISO 8601
UTC time at which the content item was last updated.
_publish_on
ISO 8601
UTC time at which the content item is or will be published.
_last_published_on
ISO 8601
UTC time when the content item was last published.
_slug
string
Unique reference within a content model.
_read_time
int
If the content item contains String/Text fields, a calculated read time is available.
Localization
When your Prepr environment is set-up for localization. The content model will be extended with the following fields:
_locale
string
Locale that is returned for this content item.
_locales
list of: string
List of locales that are present in the content item.
_localizations
list of: self
Returns the content item in all available locales.
Personalization and A/B testing
When A/B testing or personalization is enabled, the following fields are available for content items and components in the Stack to support options for analytics and SSR.
_context
self
Grouping details about A/B testing or personalization with the following fields:
kind
string
Contains a value of PERSONALIZATION
or AB_TEST
group_id
string
Unique identifier for each personalization and A/B test group in the Stack
variant_key
string
Prepr tracking variant key to easily collect conversion data for A/B testing or personalization.
variant_id
string
The Id of the personalization or A/B test variant. For personalization the value is a combination of the audience and country segments, while for A/B testing, it will have a value of A
OR B
.
segments
list of: string
Contains a list of customer segment ID's. Each customer segment will have two Id's listed, the Prepr UUID and the Customer Segment ID.
countries (deprecated)
list of: string
Contains a list of two-letter country codes of the personalization country segments.
Remote Source specific fields
_json
json
This field returns the raw data content retrieved from the remote source.
Events
The total count of events that are posted to Prepr.
Note Requesting fields listed below will reduce the cache time significantly (to aprox. 20 minutes).
_event(name: View)
int
Total number of specified events for this content item.
_views
int
Total number of View events for this content item.
_likes
int
Total number of Like events for this content item.
_bookmarks
int
Total number of Bookmark events for this content item.
_subscribes
int
Total number of Subscribe events for this content item.
Was this article helpful?
We’d love to learn from your feedback