-
Considering that SqlQuery has been removed in version 2.0.0, after updating from version 1.8.3, it is not clear to me what changes I should apply to the following code. Could you please provide guidance
|
Beta Was this translation helpful? Give feedback.
Answered by
gvkries
Sep 23, 2024
Replies: 2 comments
-
If I'm not mistaken, instead of using var sqlQuery = new Query()
{
Source = SqlQuerySource.SourceName,
Name = "category-list",
Schema = "{ \"type\" : \"ContentItem/Categories\" }",
ReturnDocuments = false
};
sqlQuery.Put(new SqlQueryMetadata()
{
Template = $"select * from {Keys.ViewNames.Categories}"
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kharaei
-
Thank you, it worked... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I'm not mistaken, instead of using
SqlQuery
you need to attach aSqlQueryMetadata
to aQuery
itself: