I saw this statement in Graphql directive definition:
const { resolve = defaultFieldResolver } = field;
I know the part const { resolve } = field; means getting resolve property of the field object out and storing it in a local variable resolve. But what I'm coming across for the first time is the = defaultFieldResolver part. What does the equal sign do here? I've done a thorough google search but maybe I'm not aware of the right keyword to search or this is probably something new.
Here's the link of the article where I saw this.
Thanks a bunch.