Skip to content

Commit

Permalink
fixing conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarhernar committed Dec 13, 2016
1 parent 560a219 commit b8f15c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion experimentation/sockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ function unsubscribe() {
socket.emit('unsubscribe', { socketid });
}

subscribe(null, '{ getMessage(id: 0) {content} }', null, function (data) {
subscribe(null, '{ getMessage(id: 0) {content author} }', null, function (data) {
console.log(data);
});
1 change: 1 addition & 0 deletions src/subql.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ function handleSubscribe(query, socketid) {
connected[socketid].query = query.query;
const parseQuery = graphql.parse(query.query);
connected[socketid].operationFields = findFields(parseQuery, {});
console.log(`connect[socketid]: handleSubscribe: ::: ${JSON.stringify(connected[socketid].operationFields, null, 2)}`)
Object.keys(root).forEach((resolverName) => {
if(operations[resolverName].kind === 'ListType') {
let queries = parseQuery.definitions.reduce((acc, curr) => {
Expand Down

0 comments on commit b8f15c5

Please sign in to comment.