What's the difference between $node
and $nodeSchema
?
#1152
-
Which one should I choose? |
Beta Was this translation helpful? Give feedback.
Answered by
Saul-Mirone
Oct 27, 2023
Replies: 1 comment
-
In most case you can use
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ylc395
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 andextendSchema
gives you the ability to extend an existing schema.