Get Involved
Edit on GitHub

upsertResource

upsertResource (input: UpsertResourceInput!) → Resource

Upsert a resource for the given parent and type and with the given data. Optionally provide custom metadata, tags and akas. If akas are passed, the first one in the array will be used to look up if the resource already exists. If no akas are passed, the first resource type AKA metadata template will be rendered using the resource data and used to look up if the resource already exists