forked from gothinkster/realworld-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#20 I think it was an index issue, but turns out don't need an index
- Loading branch information
Showing
3 changed files
with
6 additions
and
38 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
Conduit/Conduit.Migrations/009_CreateIndexForGetComments.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"cells":[{"kind":2,"language":"SQL++","value":"SELECT VALUE\r\n {\r\n c.body,\r\n c.createdAt,\r\n c.id,\r\n \"author\" : {\r\n author.bio,\r\n author.image,\r\n \"username\": c.authorUsername,\r\n \"following\": ARRAY_CONTAINS(COALESCE(follow,[]), c.authorUsername)\r\n }\r\n }\r\n\r\nFROM Conduit._default.Comments c2\r\nUNNEST c2 AS c\r\nJOIN Conduit._default.Users author ON c.authorUsername = META(author).id\r\n\r\n/* join to the logged in user if not anonymous */\r\n/* parameterized with logged in username */\r\nLEFT JOIN Conduit._default.Follows follow ON (\"mgroves\" || \"::follows\") = META(follow).id\r\n\r\n/* parameterized with comments key */\r\nWHERE META(c2).id = \"HLbwIpJEajZi::comments\";\r\n"}]} | ||
{"cells":[{"kind":2,"language":"SQL++","value":"SELECT VALUE\r\n {\r\n c.body,\r\n c.createdAt,\r\n c.id,\r\n \"author\" : {\r\n author.bio,\r\n author.image,\r\n \"username\": c.authorUsername,\r\n \"following\": ARRAY_CONTAINS(COALESCE(follow,[]), c.authorUsername)\r\n }\r\n }\r\n\r\nFROM Conduit._default.Comments c2\r\nUSE KEYS \"OjeIfc7nudAW::comments\"\r\nUNNEST c2 AS c\r\nJOIN Conduit._default.Users author ON c.authorUsername = META(author).id\r\n\r\n/* join to the logged in user if not anonymous */\r\n/* parameterized with logged in username */\r\nLEFT JOIN Conduit._default.Follows follow ON (\"mgroves\" || \"::follows\") = META(follow).id\r\n\r\n\r\n"}]} |