Our data components are based on React Apollo. The most basic component is NerdGraphQuery
, which accepts any GraphQL (or GraphQL AST generated by the grapqhl-tag
library as the query
parameter, and a set of query variables passed as variables
.
Over this query, we have created an additional set of queries, which can be divided into four groups:
User queries: These allow you to query the current user and its associated accounts. Components in this category: UserStorageQuery
and AccountsQuery
.
Entities queries: Because New Relic One is entity-centric, we use queries to make access to your entities easier. You can count, search, list, query, and favorite them. Components in this category: EntityCountQuery
, EntitySearchQuery
, EntitiesByDomainTypeQuery
, EntitiesByGuidsQuery
, EntityByGuidQuery
, EntityByNameQuery
.
Storage queries: New Relic One provides a simple storage mechanism that we call NerdStorage. This can be used by Nerdpack creators to store application configuration setting data, user-specific data, and other small pieces of data. Components in this category: UserStorageQuery
, AccountStorageQuery
, EntityStorageQuery
, UserStorageMutation
, AccountStorageMutation
, and EntityStorageMutation
. For details, see NerdStorage.
NRQL query: To be able to query your New Relic data via NRQL (New Relic query language), we provide a NrqlQuery
component. This component can return data in different formats, so that you can use it for charting and not only for querying.