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

[core] Add GraphQL endpoint URL to sanity graphql list action #1905

Merged
merged 2 commits into from
Jun 3, 2020

Conversation

runeb
Copy link
Member

@runeb runeb commented Jun 2, 2020

Type of change (check at least one)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or update to documentation)
  • Maintenance
  • Other, please describe:

Does this change require a documentation update? (Check one)

  • Yes
  • No

Current behavior

$ sanity graphql list

Here are the GraphQL endpoints deployed for this project:
1.  Dataset:     blog
    Tag:         current
    Generation:  gen2
    Playground:  true

2.  Dataset:     blog
    Tag:         default
    Generation:  gen2
    Playground:  false

Description

Added a row url URL for endpoint

$ sanity graphql list

Here are the GraphQL endpoints deployed for this project:
1.  Dataset:     blog
    Tag:         current
    Generation:  gen2
    Playground:  true
    URL:  https://ppsa7ml5.api.sanity.io/v1/graphql/blog/current

2.  Dataset:     blog
    Tag:         default
    Generation:  gen2
    Playground:  false
    URL:  https://ppsa7ml5.api.sanity.io/v1/graphql/blog/default

Note for release

Added GraphQL endpoint URL to sanity graphql list CLI action

Checklist

  • I have read the Contributing Guidelines
  • The PR title includes a link to the relevant issue
  • The PR title is appropriately formatted: [some-package] PR title (#123)
  • The code is linted
  • The test suite is passing
  • Corresponding changes to the documentation have been made

@vercel
Copy link

vercel bot commented Jun 2, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sanity-io/test-studio/pfgl32r8s
✅ Preview: https://test-studio-git-fork-runeb-graphql-urls.sanity-io.now.sh

@runeb runeb changed the title [@sanity/core]Add graphql endpoint URL to sanity graphql list action [@sanity/core] Add GraphQl endpoint URL to sanity graphql list action Jun 2, 2020
@runeb runeb changed the title [@sanity/core] Add GraphQl endpoint URL to sanity graphql list action [@sanity/core] Add GraphQL endpoint URL to sanity graphql list action Jun 2, 2020
@runeb runeb requested a review from saasen June 2, 2020 18:01
Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

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

👍

@rexxars rexxars changed the title [@sanity/core] Add GraphQL endpoint URL to sanity graphql list action [core] Add GraphQL endpoint URL to sanity graphql list action Jun 2, 2020
@rexxars rexxars merged commit 6f314f4 into sanity-io:next Jun 3, 2020
bjoerge pushed a commit that referenced this pull request Jun 5, 2020
* Add graphql endpoint URL to `sanity graphql list` action

* Use `getUrl` on the client to generate the full URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants