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

Suggestion: alternative patterns #28

Open
SachaG opened this issue Nov 3, 2019 · 1 comment
Open

Suggestion: alternative patterns #28

SachaG opened this issue Nov 3, 2019 · 1 comment

Comments

@SachaG
Copy link

SachaG commented Nov 3, 2019

Another idea I had was to provide multiple patterns when relevant. I realize this might feel a little counter-productive if the goal is to provide clear guidelines, but on the other hand it might save us from wasting time debating which is the "one true pattern" every time.

To pick a simple example, there is not a clear consensus between updateMovie and movieUpdate, so maybe we just feature both? Same with pagination, there is limit-based pagination and cursor-based pagination.

Here's an outline that shows what I mean:

  • CRUD
    • Introduction
    • Queries
      • Single
      • List
        • Guidelines
        • Pattern A (Prisma) [basic]
          • movieList
        • Pattern B (Vulcan) [experimental]
          • Movies
      • Filtering
      • Pagination
    • Mutations
      • Create
      • Update
        • Guidelines
        • Pattern A (PostGraphile, Vulcan) [basic]
          • createMovie(...)
        • Pattern B (Prisma, FooQL) [basic]
          • movieCreate(...)
        • Pattern C (AppSync) [advanced]
          • newMovie(...)
  • Auth
    • Introduction
    • Mutations
      • Log in
      • Log out
      • Reset password
  • E-commerce
    • Mutations
      • Add to cart
      • Check out
  • Social Media
    • Mutations
      • Voting
      • Like
@nodkz
Copy link
Member

nodkz commented Nov 19, 2019

Example of shopping cart as a service https://cartql.com/

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

No branches or pull requests

2 participants