-
-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
👋 I believe I have discovered a bug in this library based on GraphiQL usage of the library. If given:
import { dset } from "dset/merge"
let input = {};
dset(input, [], { hero: { id: "A" }});
console.log(input)
// output: {}
// expected: { hero: { id: "A" } }In the case of GraphQL, this can happen if a field is deferred at the root level (example test case from the reference implementation).
Example commit with test case and a fix:
ozziek@ffc84ff
Happy to open that commit as a PR here if you would prefer.
Metadata
Metadata
Assignees
Labels
No labels