You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a data fetching component that wraps a NerdGraph request like the following (currently only accessible in the Product schema, but to be released in some modified form later in the year).
{
actor {
nerdStorageVault {
secrets
}
}
}
UserSecretNameListQuery
Query Storage Vault (i.e. secrets encrypted at rest) for user scoped list of secrets.
Declarative query
//retrieve and use a stored secretimport{UserSecretNameListQuery}from'@newrelic/nr1-community';<UserSecretNameListQuery>{({ loading, error, data })=>{if(loading){return<Spinner/>;}if(error){return'Error!';}const{ secrets }=data;return(<ul>{data.secrets.map((secret,i)=><likey={i}>{secret}</li>)}</ul>);}}</UserSecretNameListQuery>;
Imperative query
UserSecretNameListQuery.query().then(({ data })=>console.log(data));
Props
prop
REQUIRED
type
description
children
TRUE
function
Render prop function as a child.
The text was updated successfully, but these errors were encountered:
Create a data fetching component that wraps a NerdGraph request like the following (currently only accessible in the Product schema, but to be released in some modified form later in the year).
UserSecretNameListQuery
Query Storage Vault (i.e. secrets encrypted at rest) for user scoped list of secrets.
Declarative query
Imperative query
Props
The text was updated successfully, but these errors were encountered: