graphql-schema-org

GraphQL objects built from schema.org definitions.

Usage no npm install needed!

<script type="module">
  import graphqlSchemaOrg from 'https://cdn.skypack.dev/graphql-schema-org';
</script>

README

graphql-schema-org

Trying to convert schema.org definitions into graphql objects.

Usage

If you want access to the entire thing (The index import is 1MB in file size.) all in one import:

import { brand, Thing } from 'graphql-schema-org'

If you want to import specific fields:

import url from 'graphql-schema-org/lib/url'

TODO

  • Need to use GraphQLUnionType when many possible types. How to programmatically create resolveType?
  • Split types into individual files.