We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a38ad15 commit 023dde9Copy full SHA for 023dde9
graphql.js
@@ -252,7 +252,11 @@
252
var types = []
253
for (var key in variables) {
254
var value = variables[key]
255
- var keyAndType = key.split("!")
+ var keyAndType = key.split(/^(.*?)\!/)
256
+ if (keyAndType.length > 1) {
257
+ keyAndType = keyAndType.slice(1)
258
+ keyAndType[1] = keyAndType[1].replace(/(.*?)\!$/, "$1")
259
+ }
260
var mapping = typeMap[typeof(value)]
261
var mappedType = typeof(mapping) === "function" ? mapping(value) : mapping
262
if (!key.match("!") && keyAndType[0].match(/_?id/i)) {
0 commit comments