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

Normalised Caching #4

Closed
oscartbeaumont opened this issue Jul 16, 2022 · 2 comments · Fixed by #64
Closed

Normalised Caching #4

oscartbeaumont opened this issue Jul 16, 2022 · 2 comments · Fixed by #64

Comments

@oscartbeaumont
Copy link
Member

oscartbeaumont commented Jul 16, 2022

Normalised cache using global IDs + schema build time validate ID's are defined on all types

Problems:

  • Single item
  • Array of items
  • Realtionships -> Eg. User with list of Pets

Identifying types and validating the keys exists on types returned from Rust

@oscartbeaumont
Copy link
Member Author

For my future reference, the current plan is along the lines of:

let router = TypedRouter::new() // This constructor would add a middleware inject type metadata for the frontend.
     .query("get", ...);

@oscartbeaumont oscartbeaumont mentioned this issue Aug 5, 2022
26 tasks
@oscartbeaumont oscartbeaumont linked a pull request Oct 3, 2022 that will close this issue
@oscartbeaumont oscartbeaumont mentioned this issue Oct 16, 2022
@oscartbeaumont
Copy link
Member Author

Majors issues in making this usable by the community:

  • Typescript situation
  • Requires specta (as opposed to rspc::intrernal::specta) as dependency in downstream projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant