GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GraphQL API server RFC by jgierer12 · Pull Request #22 · gatsbyjs/rfcs

This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Conversation

@jgierer12

@jgierer12 jgierer12 commented Dec 5, 2018

Copy link
Copy Markdown

RFC for gatsbyjs/gatsby#10230.

View text

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sedubois, calpa, Bitti09, maciekmaciej, JerryDaniels, LpmRaven, ugurtemiz, dafrie, and RustComet reacted with thumbs up emoji sedubois, Bitti09, LpmRaven, and RustComet reacted with hooray emoji
All reactions
  • 👍 9 reactions
  • 🎉 4 reactions
jgierer12 added 3 commits December 5, 2018 05:40
@jgierer12
Add GraphQL API server RFC
9eb864b
@jgierer12
Remove template left-over
bf3075b
@jgierer12
Fix typo
024a28d
@sedubois

sedubois commented Dec 5, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Great stuff! While Gatsby can be used for the web, it currently doesn’t offer a solution for native apps AFAIK (or does it?). If Gatsby’s data layer could be run as a backend it could help a lot. Not quite clear how authentication would be handled though.

Our app is available through web, iOS and Android so I’d be really excited to see this happening. We have a PostgreSQL database, so Gatsby could sit in front of it with gatsby-source-pg (or using Prisma, Hasura etc), alongside other sources stitched together by Gatsby, and the whole thing would be available to web, iOS and Android clients.

jgierer12 and Bitti09 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jgierer12

jgierer12 commented Dec 5, 2018

Copy link
Copy Markdown
Author

Interesting, I haven't considered that use case yet, but it's certainly a huge one. I mainly focused on using the data in projects that are already static Gatsby apps.

I also haven't thought much about authentication yet, IMHO we should not implement any auth in the core api-server and let users configure it themselves via the JavaScript API if they need it. I believe a setup where the API is publicly accessible is enough for most use cases.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jgierer12 added 6 commits December 5, 2018 19:35
@jgierer12
Add middleware use case
07f40e7
@jgierer12
Add unresolved question (authentication)
3037f6b
@jgierer12
Elaborate on documentation
33450a2
@jgierer12
Format changes
7ecc440
@jgierer12
Fix JS API snippet
314fa50
@jgierer12
Add duplicate query problem
9c7253d
@jgierer12
jgierer12 force-pushed the graphql-api-server branch from 309f6f9 to 9c7253d Compare February 19, 2019 11:49
@jgierer12

jgierer12 commented Feb 19, 2019

Copy link
Copy Markdown
Author

Added new drawback:

Queries that are the same at build time and run time must be duplicated (example).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jlengstorf

jlengstorf commented Feb 28, 2019

Copy link
Copy Markdown

@jgierer12 That seems solvable — if we see the query being used elsewhere, we could preserve it instead of removing it during the build. There might be some restrictions I'm not aware of, but I think we could definitely fix this without requiring duplicated queries.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@jgierer12 @sedubois @jlengstorf
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.