Skip to content

What's the difference between $node and $nodeSchema? #1152

Answered by Saul-Mirone
ylc395 asked this question in Q&A
Discussion options

You must be logged in to vote

In most case you can use $nodeSchema.

$nodeSchema is a wrapper for $node, it'll provide more methods than $node, for example, ctx allows you to get the original schema spec and extendSchema gives you the ability to extend an existing schema.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ylc395
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants