@arc-core-components/content-schema_ans-document-v0.6.2

Use with any content source that returns a single ANS document. Provides GraphQL schema to return relevant ANS fields.

Usage no npm install needed!

<script type="module">
  import arcCoreComponentsContentSchemaAnsDocumentV062 from 'https://cdn.skypack.dev/@arc-core-components/content-schema_ans-document-v0.6.2';
</script>

README

Content Schema: ANS Document (0.6.2)

This the Arc Core Component representing a GraphQL schema that can be used with a content source.

Note: This is a very beta package and will be changing shortly as we adopt a more holistic approach to schemas.

Getting started

This Core Component must be used within a Fusion project.

  1. Add this schema as a dependency of the repo.
      npm install @arc-core-components/content-schema_ans-document-v0.6.2
    
  2. Create a file of your desired schema name within the /schemas folder. For this content source, the suggested name is ans-document.js
  3. This is the name you should use when referencing this schema in any content config within a custom field.
  4. Paste the following into ans-document.js:
  import schema from '@arc-core-components/content-schema_ans-document-v0.6.2`

  export default schema

What does this schema return?

This is very much the first draft of this content source, and may not define desired fields for every item. We will likely add more fields to it as we work through use cases.