We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e50c167 commit c5030c0Copy full SHA for c5030c0
index.js
@@ -106,7 +106,7 @@ module.exports = function graphqlGun(query, gun) {
106
});
107
const result = thunk.toPromiseFactory()();
108
result.next = thunk.toPromiseFactory();
109
- result[Symbol.iterator] = function() {
+ result[Symbol.asyncIterator] = function() {
110
const factory = thunk.toPromiseFactory();
111
return {
112
next: () =>
@@ -116,5 +116,6 @@ module.exports = function graphqlGun(query, gun) {
116
}))
117
};
118
119
+ result[Symbol.iterator] = result[Symbol.asyncIterator]; // TODO: Depricate this usage
120
return result;
121
0 commit comments