-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
wip - Pothos EdgeDB Plugin #539
Draft
baristikir
wants to merge
9
commits into
hayes:main
Choose a base branch
from
baristikir:bt--edgedb-plugin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9f8c270
Initial EdgeDB Plugin Setup
baristikir 3c28ac7
Add Type System for EdgeDBObject API
baristikir f46dd33
Fix Types
baristikir fceaa3f
Remove CHANGELOG
baristikir fbd3fe0
Fix CI
baristikir 054b723
Types Clean Up ++ Add basic logic of edgeDBField
baristikir eb18ba4
Fix resolve return types
baristikir f853b76
Add ReturnShape to Model Types ++ Fix edgeDBFields resolve return typ…
baristikir 8ec9e25
Fix ReturnShape's optionality with DeepPartial
baristikir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
edgedb.toml | ||
dbschema/edgeql-js/* | ||
TODO.md | ||
api-design.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dbschema | ||
edgedb.toml | ||
test | ||
tests | ||
.turbo | ||
babel.config.js | ||
tsconfig.tsbuildinfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,340 @@ | ||
# Change Log | ||
|
||
## 3.4.0 | ||
|
||
### Minor Changes | ||
|
||
- 3a7ff291: Refactor internal imports to remove import cycles | ||
|
||
### Patch Changes | ||
|
||
- 3a7ff291: Update dev dependencies | ||
|
||
## 3.3.0 | ||
|
||
### Minor Changes | ||
|
||
- ecb2714c: Add types entry to export map in package.json and update dev dependencies | ||
|
||
This should fix compatibility with typescripts new `"moduleResolution": "node12"` | ||
|
||
## 3.2.0 | ||
|
||
### Minor Changes | ||
|
||
- 241a385f: Add peer dependency on @pothos/core | ||
|
||
## 3.1.0 | ||
|
||
### Minor Changes | ||
|
||
- 6279235f: Update build process to use swc and move type definitions to dts directory | ||
|
||
### Patch Changes | ||
|
||
- 21a2454e: update dev dependencies | ||
|
||
## 3.0.2 | ||
|
||
### Patch Changes | ||
|
||
- 03aecf76: update .npmignore | ||
|
||
## 3.0.1 | ||
|
||
### Patch Changes | ||
|
||
- 2d9b21cd: Use workspace:\* for dev dependencies on pothos packages | ||
|
||
## 3.0.0 | ||
|
||
### Major Changes | ||
|
||
- 4caad5e4: Rename GiraphQL to Pothos | ||
|
||
## 2.11.0 | ||
|
||
### Minor Changes | ||
|
||
- 9307635a: Migrate build process to use turborepo | ||
|
||
## 2.10.1 | ||
|
||
### Patch Changes | ||
|
||
- c6aa732: graphql@15 type compatibility fix | ||
|
||
## 2.10.0 | ||
|
||
### Minor Changes | ||
|
||
- 48e9fd8: Add missing exports field to package.json | ||
|
||
## 2.9.1 | ||
|
||
### Patch Changes | ||
|
||
- c85dc33: Add types entry in package.json | ||
|
||
## 2.9.0 | ||
|
||
### Minor Changes | ||
|
||
- aeef5e5: Update dependencies | ||
|
||
## 2.8.0 | ||
|
||
### Minor Changes | ||
|
||
- 9107f29: Update dependencies (includes graphql 16) | ||
|
||
## 2.7.0 | ||
|
||
### Minor Changes | ||
|
||
- 17db3bd: Make type refs extendable by plugins | ||
|
||
## 2.6.2 | ||
|
||
### Patch Changes | ||
|
||
- c976bfe: Update dependencies | ||
|
||
## 2.6.1 | ||
|
||
### Patch Changes | ||
|
||
- 4150f92: Fixed esm transformer for path-imports from dependencies | ||
|
||
## 2.6.0 | ||
|
||
### Minor Changes | ||
|
||
- dc87e68: update esm build process so extensions are added during build rather than in source | ||
|
||
## 2.5.1 | ||
|
||
### Patch Changes | ||
|
||
- b4b8381: Updrade deps (typescript 4.4) | ||
|
||
## 2.5.0 | ||
|
||
### Minor Changes | ||
|
||
- a4c87cf: Use ".js" extensions everywhere and add module and exports to package.json to better | ||
support ems in node | ||
|
||
## 2.4.2 | ||
|
||
### Patch Changes | ||
|
||
- f13208c: bump to fix latest tag | ||
|
||
## 2.4.1 | ||
|
||
### Patch Changes | ||
|
||
- 9ab8fbc: re-release previous version due to build-process issue | ||
|
||
## 2.4.0 | ||
|
||
### Minor Changes | ||
|
||
- 3dd3ff14: Updated dev dependencies, switched to pnpm, and added changesets for releases | ||
|
||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
### 2.3.1 - 2021-08-03 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.3.1-alpha.0 - 2021-08-02 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
## 2.3.0 - 2021-07-30 | ||
|
||
#### 🚀 Updates | ||
|
||
- add prisma plugin ([d427c82](https://github.com/hayes/giraphql/commit/d427c82)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.4 - 2021-07-23 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.4-alpha.0 - 2021-07-17 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.3 - 2021-07-10 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.2 - 2021-07-04 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.2-alpha.0 - 2021-07-04 | ||
|
||
#### 📦 Dependencies | ||
|
||
- upgrade typescript ([675f6a2](https://github.com/hayes/giraphql/commit/675f6a2)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.1 - 2021-07-02 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.0 - 2021-06-28 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.2.0-alpha.1 - 2021-06-28 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
## 2.2.0-alpha.0 - 2021-06-28 | ||
|
||
#### 🚀 Updates | ||
|
||
- add errors plugin ([88509b4](https://github.com/hayes/giraphql/commit/88509b4)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.7 - 2021-06-11 | ||
|
||
#### 📦 Dependencies | ||
|
||
- update dev deps ([813d9d0](https://github.com/hayes/giraphql/commit/813d9d0)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.6 - 2021-06-10 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.6-alpha.0 - 2021-06-09 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.5 - 2021-05-18 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.4 - 2021-05-13 | ||
|
||
#### 📘 Docs | ||
|
||
- add docs for loadableNode ([1ae01e8](https://github.com/hayes/giraphql/commit/1ae01e8)) | ||
|
||
#### 🛠 Internals | ||
|
||
- add tests for loadableNode ([c1b49a0](https://github.com/hayes/giraphql/commit/c1b49a0)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.3 - 2021-05-12 | ||
|
||
#### 🛠 Internals | ||
|
||
- udate dev deps ([3251227](https://github.com/hayes/giraphql/commit/3251227)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.2 - 2021-05-10 | ||
|
||
#### 🐞 Fixes | ||
|
||
- update ci build command ([7e1d1d2](https://github.com/hayes/giraphql/commit/7e1d1d2)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.1.1 - 2021-05-10 | ||
|
||
#### 🐞 Fixes | ||
|
||
- force new version to fix esm build issue | ||
([25f1fd2](https://github.com/hayes/giraphql/commit/25f1fd2)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
## 2.1.0 - 2021-05-10 | ||
|
||
#### 🚀 Updates | ||
|
||
- add esm build for all packages ([d8bbdc9](https://github.com/hayes/giraphql/commit/d8bbdc9)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.8 - 2021-05-09 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.8-alpha.0 - 2021-05-08 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.7 - 2021-05-05 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.6 - 2021-05-05 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.6-alpha.0 - 2021-05-05 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.5 - 2021-05-02 | ||
|
||
#### 🛠 Internals | ||
|
||
- force version bumps and update validation to 2.0 range | ||
([07730b3](https://github.com/hayes/giraphql/commit/07730b3)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.4 - 2021-05-02 | ||
|
||
#### 🛠 Internals | ||
|
||
- migrate to @beemo/dev for dev tool configs | ||
([1da1283](https://github.com/hayes/giraphql/commit/1da1283)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.3 - 2021-04-16 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.3-alpha.0 - 2021-04-12 | ||
|
||
#### 📦 Dependencies | ||
|
||
- update dev dependencies ([25a15d4](https://github.com/hayes/giraphql/commit/25a15d4)) | ||
- update dev deps ([cbfa0a4](https://github.com/hayes/giraphql/commit/cbfa0a4)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.2 - 2021-03-16 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.1 - 2021-02-19 | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example | ||
|
||
### 2.0.0 - 2021-02-16 | ||
|
||
#### 📘 Docs | ||
|
||
- add more docs o writing plugins ([b996fc6](https://github.com/hayes/giraphql/commit/b996fc6)) | ||
- wip - plugin guide ([cf9c6ec](https://github.com/hayes/giraphql/commit/cf9c6ec)) | ||
|
||
**Note:** Version bump only for package @giraphql/plugin-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ISC License (ISC) | ||
Copyright 2021 Michael Hayes | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably don't need this