Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gatsby-recipes): Implement utility for turning graphql sdl to fields #24506

Merged
merged 1 commit into from
May 28, 2020

Conversation

johno
Copy link
Contributor

@johno johno commented May 26, 2020

This will be used for CMS providers so that we can provision content types:

# Hello, world!

---

export const blogPostSchema = `
  type BlogPost {
    title: String!
    body: String! @metadata(type: "Text", title: "Content")
  }
`

Provision content types for the blog post:

<ContentfulSpace name="blog">
  <ContentfulEnvironment name="production">
    <ContentfulType schema={blogPostSchema} />
  </ContentfulEnvironment>
  <ContentfulEnvironment name="staging">
    <ContentfulType schema={blogPostSchema} />
  </ContentfulEnvironment>
</ContentfulSpace>

@johno johno added this to the Recipes: Support inputs & state file milestone May 26, 2020
@johno johno requested review from a team as code owners May 26, 2020 18:32
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 26, 2020
KyleAMathews
KyleAMathews previously approved these changes May 26, 2020
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@KyleAMathews KyleAMathews added bot: merge on green Gatsbot will merge these PRs automatically when all tests passes and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 26, 2020
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix CI?

@johno johno force-pushed the recipes-graphql-fields branch from ce79430 to 581fb8a Compare May 27, 2020 18:41
@johno johno dismissed snitin315’s stale review May 27, 2020 18:41

These changes shouldn't be affecting CI, it appears unrelated.

…elds

This will be used for CMS providers so that we can
provision content types

  # Hello, world!

  ---

  export const blogPostSchema = `
    type BlogPost {
      title: String!
      body: String! @metadata(type: "Text", title: "Content")
    }
  `

  Provision content types for the blog post:

  <ContentfulSpace name="blog">
    <ContentfulEnvironment name="production">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
    <ContentfulEnvironment name="staging">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
  </ContentfulSpace>
@johno johno force-pushed the recipes-graphql-fields branch from 581fb8a to c8dff03 Compare May 28, 2020 02:13
@johno johno requested a review from KyleAMathews May 28, 2020 02:44
Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great! All hail John! Master of the Meta!

@gatsbybot gatsbybot merged commit 1cc804d into gatsbyjs:master May 28, 2020
johno added a commit to johno/gatsby that referenced this pull request May 28, 2020
…elds (gatsbyjs#24506)

This will be used for CMS providers so that we can
provision content types

  # Hello, world!

  ---

  export const blogPostSchema = `
    type BlogPost {
      title: String!
      body: String! @metadata(type: "Text", title: "Content")
    }
  `

  Provision content types for the blog post:

  <ContentfulSpace name="blog">
    <ContentfulEnvironment name="production">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
    <ContentfulEnvironment name="staging">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
  </ContentfulSpace>
axe312ger pushed a commit that referenced this pull request Jun 23, 2020
…elds (#24506)

This will be used for CMS providers so that we can
provision content types

  # Hello, world!

  ---

  export const blogPostSchema = `
    type BlogPost {
      title: String!
      body: String! @metadata(type: "Text", title: "Content")
    }
  `

  Provision content types for the blog post:

  <ContentfulSpace name="blog">
    <ContentfulEnvironment name="production">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
    <ContentfulEnvironment name="staging">
      <ContentfulType schema={blogPostSchema} />
    </ContentfulEnvironment>
  </ContentfulSpace>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants