Update doc examples to reflect the docs for JavaScript
Update doc examples to reflect the docs for JavaScript

Replicates graphql/graphql-js@36f068e8cca064f9796d35de27ba1ef489873926

graphql-python/graphql-core