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

ENG-4369 feat(graphql): graphql package scaffolding with codegen and patterns #881

Merged
merged 17 commits into from
Nov 1, 2024

Conversation

jonathanprozzi
Copy link
Member

Affected Packages

Apps

  • portal

Packages

  • 1ui
  • api
  • graphql
  • protocol
  • sdk

Tools

  • tools

Overview

  • This PR is co-authored by @0xjojikun
  • Adds 0xintuition/graphql package, codegen with support for hooks/declarative loads, and client scaffolding
  • Adds in several initial GraphQL fragments and queries
  • Adds ability to use the graphql package in other apps within monorepo
  • Adds examples for dependent querying in template on a /playground route -- this is temporary and will be removed from the template and moved to Storybook stories in an upcoming PR

Screen Captures

If applicable, add screenshots or screen captures of your changes.

Declaration

  • I hereby declare that I have abided by the rules and regulations as outlined in the CONTRIBUTING.md

0xjojikun and others added 16 commits October 31, 2024 12:46
…erated hooks from new queries. Going to add dependent queries next
… structure for dependent query, adjusts codegen to support infinite queries, adds graphql package to tsconfig.base.json and slightly changes the types in graphql package.json. Uses an address in the query param for the playground. Adds fragments and queries and re-runs codegen.

Adds client config support for consumers that want to scaffold Apollo

Basic working structure for dependendent query -- checkpoint

Continues to adjust the dependent query example -- adjusts codegen to also support infinite queries, re-runs codegen

Adds graphql package to the tsconfig.base.json and slightly changes the types in graphql package.json. Uses address in param for dependent query example in playground
Copy link

linear bot commented Nov 1, 2024

ENG-4369 [Tracker] Portal <> Hasura Initial Phase

TLDR:

  • Get Hasura up and running locally with indexed dev database from Base Sepolia
  • Rework / port test queries into Hasura
  • Connect Portal to local Hasura for POC

Task Breakdown - should translate to sub-issues if applicable:

  • Get Hasura working locally with Docker
  • Convert initial exploration queries into Hasura (slight reworks)
  • Test initial queries in Hasura
  • Setup basic scaffolding in Portal for a POC demo
  • Setup codegen for Portal
  • Setup client
  • Record Looms for KT

@github-actions github-actions bot added the feat Feature label Nov 1, 2024
@0xjojikun 0xjojikun enabled auto-merge (squash) November 1, 2024 04:44
@0xjojikun 0xjojikun merged commit 9dd92c5 into main Nov 1, 2024
3 checks passed
@0xjojikun 0xjojikun deleted the graphql-codegen-with-playground branch November 1, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants