mirror of
https://github.com/atulmy/gql-query-builder.git
synced 2026-04-25 23:55:55 +03:00
[PR #11] [MERGED] Adapter support #149
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gql-query-builder#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/atulmy/gql-query-builder/pull/11
Author: @toadkicker
Created: 5/9/2019
Status: ✅ Merged
Merged: 6/11/2019
Merged by: @atulmy
Base:
master← Head:appsync_support📝 Commits (10+)
7140fbfupdate dependencies (9 vunerable)5f843acwork in progress5962699mid flight checkin5f996f8mid flight checkin5138c2fpassed tests0dcb6fdadded test/support for adapter argument vs including it in the QueryBuilderOptions. Now we can just pass in the adapter class as a second optional argument for query/mutation builder.2e4e8feMerge branch 'master' into appsync_support2244e93added some documentation about adapters and comments in the files07ee16efix link to to default adapters3f00375added default appsync mutation adapter📊 Changes
16 files changed (+1009 additions, -217 deletions)
View changed files
📝
README.md(+133 -13)➕
src/Fields.ts(+8 -0)➕
src/IQueryBuilderOptions.ts(+13 -0)➕
src/OperationType.ts(+7 -0)➕
src/Utils.ts(+72 -0)➕
src/adapters/DefaultAppSyncMutationAdapter.ts(+104 -0)➕
src/adapters/DefaultAppSyncQueryAdapter.ts(+121 -0)➕
src/adapters/DefaultMutationAdapter.ts(+112 -0)➕
src/adapters/DefaultQueryAdapter.ts(+119 -0)➕
src/adapters/DefaultSubscriptionAdapter.ts(+106 -0)➕
src/adapters/IMutationAdapter.ts(+12 -0)➕
src/adapters/IQueryAdapter.ts(+12 -0)➕
src/adapters/ISubscriptionAdapter.ts(+12 -0)➕
src/adapters/index.ts(+4 -0)📝
src/index.test.ts(+109 -28)📝
src/index.ts(+65 -176)📄 Description
Hello,
I wanted to thank you first for building this great library. I've been hacking on it this week to make it much more flexible and support many kinds of graphql implementations. In order to achieve that, I started introducing an adapter pattern. This means developers can introduce their own query building tool provided they implement the appropriate interfaces. Overall my goal is to introduce this library as a dependency in
vuex-orm'splugin-graphqlecosystem while keeping this library independent. Looking forward to collaborating on it and making this the defacto choice for building graphql queries.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.