<commit_before>import { createGravityLink } from "./link"
import {
  makeRemoteExecutableSchema,
  transformSchema,
  FilterTypes,
  RenameTypes,
  RenameRootFields,
} from "graphql-tools"
import { readFileSync } from "fs"

const allowList = [
  "agreement",
  "viewingRoom",
  "viewingRooms",
  "artistSeries",
  "artistSeriesConnection",
]

export const executableGravitySchema = () => {
  const gravityTypeDefs = readFileSync("src/data/gravity.graphql", "utf8")

  const gravityLink = createGravityLink()
  const schema = makeRemoteExecutableSchema({
    schema: gravityTypeDefs,
    link: gravityLink,
  })

  // Types which come from Gravity which MP already has copies of.
  // In the future, these could get merged into the MP types.
  const duplicatedTypes = [
    "Artist",
    "Artwork",
    "ArtistEdge",
    "ArtworkEdge",
    "ArtworkConnection",
    "ArtistConnection",
    "Lot",
    "Money",
    "MoneyInput",
    "Sale",
    "SaleArtwork",
    "SaleArtworkConnection",<commit_msg>chore: alphabetize gravity duplicatedTypes<commit_after>import { createGravityLink } from "./link"
import {
  makeRemoteExecutableSchema,
  transformSchema,
  FilterTypes,
  RenameTypes,
  RenameRootFields,
} from "graphql-tools"
import { readFileSync } from "fs"

const allowList = [
  "agreement",
  "viewingRoom",
  "viewingRooms",
  "artistSeries",
  "artistSeriesConnection",
]

export const executableGravitySchema = () => {
  const gravityTypeDefs = readFileSync("src/data/gravity.graphql", "utf8")

  const gravityLink = createGravityLink()
  const schema = makeRemoteExecutableSchema({
    schema: gravityTypeDefs,
    link: gravityLink,
  })

  // Types which come from Gravity which MP already has copies of.
  // In the future, these could get merged into the MP types.
  const duplicatedTypes = [
    "Artist",
    "ArtistConnection",
    "ArtistEdge",
    "Artwork",
    "ArtworkConnection",
    "ArtworkEdge",
    "Lot",
    "Money",
    "MoneyInput",
    "Sale",
    "SaleArtwork",
    "SaleArtworkConnection",
{'fraction_non_alphanumeric': 0.11418685121107267, 'fraction_numerical': 0.0009886307464162135, 'mean_word_length': 3.9607843137254903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6797412', 'n_tokens_mistral': 654, 'n_tokens_neox': 631, 'n_words': 154}