Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #47 from aerogear/fixes
Browse files Browse the repository at this point in the history
fix: graphiql subscriptions
  • Loading branch information
Dara Hayes committed Aug 7, 2018
2 parents c8b59e3 + c0403a2 commit 3fecb4e
Show file tree
Hide file tree
Showing 4 changed files with 1,262 additions and 1,260 deletions.
82 changes: 41 additions & 41 deletions examples/memeolist.query.graphql
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@

query allMemes {
allMemes {
query allMemes {
allMemes {
id
photourl
owner
likes
comments {
id
photoUrl
comment
owner
likes
comments {
id
comment
owner
}
}
}
}

mutation createMeme($ownerid: ID!, $photoUrl: String!, $owner: String!) {
createMeme(ownerid: $ownerid, photoUrl: $photoUrl, owner: $owner) {
id
photoUrl
owner
likes
}
mutation createMeme($ownerid: ID!, $photourl: String!, $owner: String!) {
createMeme(ownerid: $ownerid, photourl: $photourl, owner: $owner) {
id
photourl
owner
likes
}
}


mutation postComment($memeid: ID!, $comment: String!, $owner: String!){
postComment(memeid: $memeid, comment: $comment, owner: $owner){
id
comment
owner
}
mutation postComment($memeid: ID!, $comment: String!, $owner: String!){
postComment(memeid: $memeid, comment: $comment, owner: $owner){
id
comment
owner
}
}

mutation likeMeme($memeid: ID!){
likeMeme(id: $memeid)
}
mutation likeMeme($memeid: ID!){
likeMeme(id: $memeid)
}

## Profile section
mutation createProfile($email: String!, $displayName: String!, $pictureUrl: String!) {
createProfile(email: $email, displayName: $displayName, pictureUrl: $pictureUrl) {
id
email
displayName
pictureUrl
}
## Profile section
mutation createProfile($email: String!, $displayname: String!, $pictureurl: String!) {
createProfile(email: $email, displayname: $displayname, pictureurl: $pictureurl) {
id
email
displayname
pictureurl
}
}

query profile($email: String!) {
profile(email:$email){
id
email
displayName
pictureUrl
}
}
query profile($email: String!) {
profile(email:$email){
id
email
displayname
pictureurl
}
}
5 changes: 3 additions & 2 deletions examples/memeolist.tables.sql
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
DROP TABLE IF EXISTS comment;
DROP TABLE IF EXISTS meme;
DROP TABLE IF EXISTS profile;

CREATE TABLE profile (
id SERIAL NOT NULL PRIMARY KEY,
email CHARACTER VARYING(100) NOT NULL,
displayname CHARACTER VARYING(100) NOT NULL,
pictureurl CHARACTER VARYING(500) NOT NULL
);

DROP TABLE IF EXISTS meme;
CREATE TABLE meme (
id SERIAL NOT NULL PRIMARY KEY,
photourl CHARACTER VARYING(500) NOT NULL,
Expand All @@ -15,7 +17,6 @@ CREATE TABLE meme (
ownerid SERIAL NOT NULL references profile(id)
);

DROP TABLE IF EXISTS comment;
CREATE TABLE comment (
id SERIAL NOT NULL PRIMARY KEY,
owner CHARACTER VARYING(100) NOT NULL,
Expand Down
Loading

0 comments on commit 3fecb4e

Please sign in to comment.