-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Create a method to return result as raw json #139
Comments
Hi Ali, If you need help, please have a look here in this section of the readme that outlines the help and support options for this driver. Normally, GitHub issues here are mostly reserved for bug reports and issues surrounding changes to the driver source code. |
Hi Brian,
Thank for your reply. I just want a method to run query on server and return result as raw json and I can’t find a method like this.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Brian Chavez <notifications@github.com>
Sent: Sunday, February 24, 2019 9:52:13 AM
To: bchavez/RethinkDb.Driver
Cc: Ali; Author
Subject: Re: [bchavez/RethinkDb.Driver] Create a method to return result as raw json (#139)
Closed #139<#139>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#139 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADFYVK3jXs7Ayx7kWocbjTXMwJWTQl-9ks5vQi-VgaJpZM4bOXNG>.
|
Hi Ali, Perhaps I closed the issue too soon and probably should have explained a little more. The proposal for string result = R.Db(DbName).Table(TableName)
.GetAll(R.Args(ids))
.RunAsRowJson(connection);
So, the proposal isn't quite as clear cut as it may seem. What should My gut feeling is that you are probably looking for is the ReQL Hope that helps, |
Hi Brain,
Specially Thank for your response and appending time for my problem.
The Proposal for .RunAsRowJson() just is to create a method that returned server result as raw json string.
e.g. we have a table with name “channels” in rethinkDb which contains object below
{
* "access": "private" ,
* "admin": {
* "id": -110 ,
* "name": "deleted account" ,
* "user": ""
} ,
* "channelId": 30 ,
* "dateInsert": "2019-01-09 19:01:22.719054" ,
* "dateUpdate": 1550869364 ,
* "id": 30 ,
* "name": "ch 1" ,
* "nextCursor": 17 ,
* "time": 1478245932572 ,
* "type": "channel"
}
Now I just wanna to receive raw json string from server without any serialize or deserialization.
So .RunAsRowJson() should return server response as json string.
I don’t need to use Cursor, Result or other result types. Just raw string.
Thanks 😊
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
|
i need a method to run query on server and return result as raw json.
e.g : string result = R.Db(DbName).Table(TableName)
.GetAll(R.Args(ids))
.RunAsRowJson(connection);
The text was updated successfully, but these errors were encountered: