@arc-core-components/content-schema_ans-document-v0.6.2
v0.1.8-beta.1
Published
Use with any content source that returns a single ANS document. Provides GraphQL schema to return relevant ANS fields.
Downloads
221
Maintainers
Keywords
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.
- Add this schema as a dependency of the repo.
npm install @arc-core-components/content-schema_ans-document-v0.6.2
- Create a file of your desired schema name within the
/schemas
folder. For this content source, the suggested name isans-document.js
- This is the name you should use when referencing this schema in any content config within a custom field.
- 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.