-
-
Notifications
You must be signed in to change notification settings - Fork 86
Add minimal documentation to in ir in trustfall_core
#139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ir in trustfall_core
|
|
obi1kenobi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks really good -- thanks for putting it together! Just a few polishing suggestions here and there. Let me know what you think?
trustfall_core/src/ir/mod.rs
Outdated
| #[serde(default, skip_serializing_if = "BTreeMap::is_empty")] pub BTreeMap<Arc<str>, FieldValue>, | ||
| ); | ||
|
|
||
| /// IR of components of a query, containing information about the vertex ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it's worth trying to stick to always saying Vid throughout the docs, even linking to it as needed? It's a core concept and will keep coming up all over the place in the IR, so I'm worried that mixing between vertex ID and Vid may be more confusing than just sticking to the unambiguous term that the reader has to learn.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be worth linking it every time (so it's always easy to find the definition), but yes it should be the same. I'll replace them!
| } | ||
|
|
||
| /// Vertex ID | ||
| #[doc(alias("vertex", "node"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 💯
|
|
||
| /// Values of fields in GraphQL types. | ||
| /// | ||
| /// For version that is serialized as an untagged enum, see [TransparentValue]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!
Better IRQueryComponent docs Co-authored-by: Predrag Gruevski <[email protected]>
Co-authored-by: Predrag Gruevski <[email protected]>
|
Thank you for taking the time to review! |
| /// A small subtlety is important here: it's possible that the tagged value is *local* to | ||
| /// the scope being filtered. In that case, the context *will not* yet have a token associated | ||
| /// with the vertex ID of the tag's ContextField. However, in such cases, the tagged value | ||
| /// with the [Vid] of the tag's ContextField. However, in such cases, the tagged value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't have to be in this PR, just wondering: can we link ContextField here too?
|
Thanks for all the awesome contributions, they are making a huge difference 🚀 |
Again from #136. These are just minimal docs, to help with understanding
trustfall_core/src/ir/