// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`addGraphQLCustomFields() extends a type 1`] = `
"scalar JSON

type Product {
  id: ID
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
}
"
`;

exports[`addGraphQLCustomFields() extends a type with FilterParameters 1`] = `
"input BooleanOperators {
  eq: Boolean
}

input DateOperators {
  eq: String
}

scalar JSON

input NumberOperators {
  eq: Float
}

type Product {
  name: String
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
  rating: Float
  published: String
}

input ProductFilterParameter {
  id: StringOperators
  available: BooleanOperators
  shortName: StringOperators
  rating: NumberOperators
  published: DateOperators
}

input StringOperators {
  eq: String
}
"
`;

exports[`addGraphQLCustomFields() extends a type with SortParameters 1`] = `
"scalar JSON

type Product {
  id: ID
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
}

input ProductSortParameter {
  id: SortOrder
  available: SortOrder
  shortName: SortOrder
}

enum SortOrder {
  ASC
  DESC
}
"
`;

exports[`addGraphQLCustomFields() extends a type with a Create input 1`] = `
"input CreateProductCustomFieldsInput {
  available: Boolean
}

input CreateProductInput {
  image: String
  customFields: CreateProductCustomFieldsInput
}

scalar JSON

type Product {
  id: ID
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
}
"
`;

exports[`addGraphQLCustomFields() extends a type with a Create input and a translation 1`] = `
"input CreateProductCustomFieldsInput {
  available: Boolean
}

input CreateProductInput {
  image: String
  customFields: CreateProductCustomFieldsInput
}

scalar JSON

type Product {
  id: ID
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
}

type ProductTranslation {
  id: ID
  customFields: ProductTranslationCustomFields
}

type ProductTranslationCustomFields {
  shortName: String
}

input ProductTranslationCustomFieldsInput {
  shortName: String
}

input ProductTranslationInput {
  id: ID
  customFields: ProductTranslationCustomFieldsInput
}
"
`;

exports[`addGraphQLCustomFields() extends a type with a translation 1`] = `
"scalar JSON

type Product {
  id: ID
  translations: [ProductTranslation!]!
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
}

type ProductTranslation {
  id: ID
  customFields: ProductTranslationCustomFields
}

type ProductTranslationCustomFields {
  shortName: String
}
"
`;

exports[`addGraphQLCustomFields() extends a type with an Update input 1`] = `
"scalar JSON

type Product {
  id: ID
  customFields: ProductCustomFields
}

type ProductCustomFields {
  available: Boolean
  shortName: String
}

input UpdateProductCustomFieldsInput {
  available: Boolean
}

input UpdateProductInput {
  image: String
  customFields: UpdateProductCustomFieldsInput
}
"
`;

exports[`addGraphQLCustomFields() uses JSON scalar if no custom fields defined 1`] = `
"scalar JSON

type Product {
  id: ID
  customFields: JSON
}
"
`;
