Skip to content

Instantly share code, notes, and snippets.

@vladar
vladar / pr-22377.gql
Last active Mar 23, 2020
Medium Schema Customization
View pr-22377.gql
type MediumCollection implements Node @derivedTypes @dontInfer {
name: String
slug: String
tags: [String]
creatorId: String
description: String
shortDescription: String
image: MediumCollectionImage
metadata: MediumCollectionMetadata
virtuals: MediumCollectionVirtuals
View gatsby-source-airtable.txt
fetch all Airtable rows from 3 tables: 4401.137ms
create node recfeQZT1bAUaFiG8 data: [ 'Name',
'Cooking_Method___NODE',
'Style___NODE',
'URL',
'Ingredients',
'Directions',
'Rating' ]
create node recXFnf5mWIMx6lO3 data: [ 'Name',
'Cooking_Method___NODE',
View sequence_of_actions.txt
gatsby build
SET_LOGS 1
SET_PROGRAM 1
SET_SITE_CONFIG 1
success open and validate gatsby-configs - 0.041s
success load plugins - 0.924s
success onPreInit - 0.005s
SET_SITE_FLATTENED_PLUGINS 1
success delete html and css files from previous builds - 0.012s
DELETE_CACHE 1
View after-schema-rebuilding.txt
success open and validate gatsby-configs - 0.044s
success load plugins - 1.340s
success onPreInit - 0.006s
success delete html and css files from previous builds - 0.014s
success initialize cache - 0.010s
success copy gatsby files - 0.145s
success onPreBootstrap - 3.133s
success createSchemaCustomization - 0.003s
success source and transform nodes - 14.054s
success building schema - 0.573s
View docs.md

Table of Contents

  • [Foo][1]
    • [foo][2]
  • [Foo][3]
    • [foo][4]
  • [Bar][5]
View GqlTypeExample.php
<?php
class HumanType
{
public function getDefinition()
{
return '
type Human : Character {
id: String!
name: String
friends: [Character] @resolveMethod("getFriends")