{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7","id":212241179,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyMjQxMTc5","html_url":"https://github.com/Weakky/ra-data-prisma/pull/7","diff_url":"https://github.com/Weakky/ra-data-prisma/pull/7.diff","patch_url":"https://github.com/Weakky/ra-data-prisma/pull/7.patch","issue_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/7","number":7,"state":"closed","locked":false,"title":"[RFR] Allow overriding queries by using fragments","user":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"body":"Used both `gql` and literral strings to show it is possible to use both.\r\n- Pros of using `gql` is that your IDE might provide you syntax highlighting + autocompletion.\r\n\r\nI was able to remove **all** `<ReferenceField />` and `<ReferenceManyField />` by simples `<TextField />` and `<ArrayField />`, meaning all `<List />` components now load in a single query. Performances were more than greatly improved.\r\n\r\nThe only cons right now is that we'll have to manually handle refs to other resources as `react-admin` no longer can automatically generate the `<Link />`.\r\n\r\nHere's a codesandbox plugged on that branch:\r\n\r\n[![Edit ra-data-prisma](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/Weakky/ra-data-prisma/tree/feature-override-queries/?module=%2Fsrc%2FApp.js)","created_at":"2018-08-30T23:52:26Z","updated_at":"2018-09-09T19:04:07Z","closed_at":"2018-09-09T19:04:07Z","merged_at":"2018-09-09T19:04:07Z","merge_commit_sha":"b1cc3e2a47d01587f707824aa73387692d531a0d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/7/comments","statuses_url":"https://api.github.com/repos/Weakky/ra-data-prisma/statuses/d112425e18f63c2941b05b0405113db58e049c84","head":{"label":"Weakky:feature-override-queries","ref":"feature-override-queries","sha":"d112425e18f63c2941b05b0405113db58e049c84","user":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"repo":{"id":145546218,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NDYyMTg=","name":"ra-data-prisma","full_name":"Weakky/ra-data-prisma","owner":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Weakky/ra-data-prisma","description":"A react-admin data provider for Prisma","fork":false,"url":"https://api.github.com/repos/Weakky/ra-data-prisma","forks_url":"https://api.github.com/repos/Weakky/ra-data-prisma/forks","keys_url":"https://api.github.com/repos/Weakky/ra-data-prisma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Weakky/ra-data-prisma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Weakky/ra-data-prisma/teams","hooks_url":"https://api.github.com/repos/Weakky/ra-data-prisma/hooks","issue_events_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/events{/number}","events_url":"https://api.github.com/repos/Weakky/ra-data-prisma/events","assignees_url":"https://api.github.com/repos/Weakky/ra-data-prisma/assignees{/user}","branches_url":"https://api.github.com/repos/Weakky/ra-data-prisma/branches{/branch}","tags_url":"https://api.github.com/repos/Weakky/ra-data-prisma/tags","blobs_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/refs{/sha}","trees_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Weakky/ra-data-prisma/statuses/{sha}","languages_url":"https://api.github.com/repos/Weakky/ra-data-prisma/languages","stargazers_url":"https://api.github.com/repos/Weakky/ra-data-prisma/stargazers","contributors_url":"https://api.github.com/repos/Weakky/ra-data-prisma/contributors","subscribers_url":"https://api.github.com/repos/Weakky/ra-data-prisma/subscribers","subscription_url":"https://api.github.com/repos/Weakky/ra-data-prisma/subscription","commits_url":"https://api.github.com/repos/Weakky/ra-data-prisma/commits{/sha}","git_commits_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/commits{/sha}","comments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/comments{/number}","issue_comment_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/comments{/number}","contents_url":"https://api.github.com/repos/Weakky/ra-data-prisma/contents/{+path}","compare_url":"https://api.github.com/repos/Weakky/ra-data-prisma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Weakky/ra-data-prisma/merges","archive_url":"https://api.github.com/repos/Weakky/ra-data-prisma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Weakky/ra-data-prisma/downloads","issues_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues{/number}","pulls_url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls{/number}","milestones_url":"https://api.github.com/repos/Weakky/ra-data-prisma/milestones{/number}","notifications_url":"https://api.github.com/repos/Weakky/ra-data-prisma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Weakky/ra-data-prisma/labels{/name}","releases_url":"https://api.github.com/repos/Weakky/ra-data-prisma/releases{/id}","deployments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/deployments","created_at":"2018-08-21T10:10:15Z","updated_at":"2018-09-04T09:43:52Z","pushed_at":"2018-09-09T19:04:07Z","git_url":"git://github.com/Weakky/ra-data-prisma.git","ssh_url":"git@github.com:Weakky/ra-data-prisma.git","clone_url":"https://github.com/Weakky/ra-data-prisma.git","svn_url":"https://github.com/Weakky/ra-data-prisma","homepage":"","size":214,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":6,"watchers":14,"default_branch":"master"}},"base":{"label":"Weakky:master","ref":"master","sha":"d57f5073bdf742b8253b61aefa7105a8477b96ba","user":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"repo":{"id":145546218,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU1NDYyMTg=","name":"ra-data-prisma","full_name":"Weakky/ra-data-prisma","owner":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Weakky/ra-data-prisma","description":"A react-admin data provider for Prisma","fork":false,"url":"https://api.github.com/repos/Weakky/ra-data-prisma","forks_url":"https://api.github.com/repos/Weakky/ra-data-prisma/forks","keys_url":"https://api.github.com/repos/Weakky/ra-data-prisma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Weakky/ra-data-prisma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Weakky/ra-data-prisma/teams","hooks_url":"https://api.github.com/repos/Weakky/ra-data-prisma/hooks","issue_events_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/events{/number}","events_url":"https://api.github.com/repos/Weakky/ra-data-prisma/events","assignees_url":"https://api.github.com/repos/Weakky/ra-data-prisma/assignees{/user}","branches_url":"https://api.github.com/repos/Weakky/ra-data-prisma/branches{/branch}","tags_url":"https://api.github.com/repos/Weakky/ra-data-prisma/tags","blobs_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/refs{/sha}","trees_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Weakky/ra-data-prisma/statuses/{sha}","languages_url":"https://api.github.com/repos/Weakky/ra-data-prisma/languages","stargazers_url":"https://api.github.com/repos/Weakky/ra-data-prisma/stargazers","contributors_url":"https://api.github.com/repos/Weakky/ra-data-prisma/contributors","subscribers_url":"https://api.github.com/repos/Weakky/ra-data-prisma/subscribers","subscription_url":"https://api.github.com/repos/Weakky/ra-data-prisma/subscription","commits_url":"https://api.github.com/repos/Weakky/ra-data-prisma/commits{/sha}","git_commits_url":"https://api.github.com/repos/Weakky/ra-data-prisma/git/commits{/sha}","comments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/comments{/number}","issue_comment_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/comments{/number}","contents_url":"https://api.github.com/repos/Weakky/ra-data-prisma/contents/{+path}","compare_url":"https://api.github.com/repos/Weakky/ra-data-prisma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Weakky/ra-data-prisma/merges","archive_url":"https://api.github.com/repos/Weakky/ra-data-prisma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Weakky/ra-data-prisma/downloads","issues_url":"https://api.github.com/repos/Weakky/ra-data-prisma/issues{/number}","pulls_url":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls{/number}","milestones_url":"https://api.github.com/repos/Weakky/ra-data-prisma/milestones{/number}","notifications_url":"https://api.github.com/repos/Weakky/ra-data-prisma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Weakky/ra-data-prisma/labels{/name}","releases_url":"https://api.github.com/repos/Weakky/ra-data-prisma/releases{/id}","deployments_url":"https://api.github.com/repos/Weakky/ra-data-prisma/deployments","created_at":"2018-08-21T10:10:15Z","updated_at":"2018-09-04T09:43:52Z","pushed_at":"2018-09-09T19:04:07Z","git_url":"git://github.com/Weakky/ra-data-prisma.git","ssh_url":"git@github.com:Weakky/ra-data-prisma.git","clone_url":"https://github.com/Weakky/ra-data-prisma.git","svn_url":"https://github.com/Weakky/ra-data-prisma","homepage":"","size":214,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":6,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7"},"html":{"href":"https://github.com/Weakky/ra-data-prisma/pull/7"},"issue":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/7"},"comments":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Weakky/ra-data-prisma/statuses/d112425e18f63c2941b05b0405113db58e049c84"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Weakky","id":25233379,"node_id":"MDQ6VXNlcjI1MjMzMzc5","avatar_url":"https://avatars2.githubusercontent.com/u/25233379?v=4","gravatar_id":"","url":"https://api.github.com/users/Weakky","html_url":"https://github.com/Weakky","followers_url":"https://api.github.com/users/Weakky/followers","following_url":"https://api.github.com/users/Weakky/following{/other_user}","gists_url":"https://api.github.com/users/Weakky/gists{/gist_id}","starred_url":"https://api.github.com/users/Weakky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Weakky/subscriptions","organizations_url":"https://api.github.com/users/Weakky/orgs","repos_url":"https://api.github.com/users/Weakky/repos","events_url":"https://api.github.com/users/Weakky/events{/privacy}","received_events_url":"https://api.github.com/users/Weakky/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":264,"deletions":141,"changed_files":12}}
{"actor":{"display_login":"Weakky"}}