Function loadSchema

  • Load graphql schema from string, and use it to validate queries

    Parameters

    • source: string | GraphQLSchema

      graphql schema or string containing schema definition

    • reload: boolean = false

      if true, flush all existing data

    Returns undefined | Error[]