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

Feature/ws2 2949 locking add graphql support #205

Merged
merged 17 commits into from
Feb 9, 2024

Conversation

JulissaDantes
Copy link
Contributor

We have to wait for the Ceramic side to be ready, but we could start reviewing this side in the meantime. Here we add the new directive to recognize immutable fields and make sure to support parsing it.

Copy link
Contributor

@PaulLeCam PaulLeCam left a comment

Choose a reason for hiding this comment

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

Looks great for the devtools part, but could you also update the runtime schema so that immutable fields are not present in the update inputs please?
The method generating these inputs is here: https://github.com/ceramicstudio/js-composedb/blob/main/packages/runtime/src/schema.ts#L866
I think that will also require some changes to the runtime definition to indicate what fields are immutable, here are the shared type definitions: https://github.com/ceramicstudio/js-composedb/blob/main/packages/types/src/index.ts

Let me know if you need more details or you want to sync on these changes some time!

@JulissaDantes JulissaDantes marked this pull request as draft February 5, 2024 14:25
@JulissaDantes JulissaDantes force-pushed the feature/ws2-2949-locking-add-graphql-support branch from 655b51c to ff1588d Compare February 9, 2024 15:32
@JulissaDantes JulissaDantes marked this pull request as ready for review February 9, 2024 15:36
Copy link
Contributor

@PaulLeCam PaulLeCam left a comment

Choose a reason for hiding this comment

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

LGTM other than the inherited immutable fields from the interfaces that could result in duplicate keys

packages/devtools/src/schema/parser.ts Show resolved Hide resolved
packages/devtools/src/schema/parser.ts Outdated Show resolved Hide resolved
packages/devtools/src/schema/resolution.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@PaulLeCam PaulLeCam left a comment

Choose a reason for hiding this comment

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

Thanks!

@JulissaDantes JulissaDantes merged commit 4d7920e into main Feb 9, 2024
5 checks passed
@JulissaDantes JulissaDantes deleted the feature/ws2-2949-locking-add-graphql-support branch February 9, 2024 16:40
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.

2 participants