Created
June 24, 2019 12:19
-
-
Save drexel-ue/cdfd23941052798e8fee2cb0f4f92a3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
QUERY: | |
final alertQuery = Query<User>(context) | |
..where((User user) => user.id).equalTo(id) | |
..join(set: (User user) => user.likes) | |
.join(object: (Like like) => like.liker) | |
.returningProperties((User user) => [user.displayName]) | |
..join(set: (User user) => user.shares) | |
.join(object: (Share share) => share.sharer) | |
.returningProperties((User user) => [user.displayName]); | |
REPSPONSE: (cut off by terminal) | |
[{id: 56, createdAt: 2019-06-23T00:51:38.411783Z, username: [email protected], displayName: novachrono, realName: Ryan Coswell, profilePicUrl: null, bio: null, entries: null, followers: null, following: null, challengesCreated: null, coinsAvail: null, | |
likes: [ | |
{id: 7, createdAt: 2019-06-23T03:50:51.421967Z, video: {id: 15}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 8, createdAt: 2019-06-23T04:04:53.088541Z, video: {id: 15}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 9, createdAt: 2019-06-23T04:04:56.632456Z, video: {id: 15}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 10, createdAt: 2019-06-23T04:06:00.188748Z, video: {id: 12}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 11, createdAt: 2019-06-23T04:06:01.512768Z, video: {id: 12}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 12, createdAt: 2019-06-23T04:06:14.932521Z, video: {id: 14}, likee: {id: 56}, liker: {id: 57, displayName: egg_lord}}, | |
{id: 13 .... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment