Is it possible to get records without meta-information?

60 views
Skip to first unread message

Academia Learning Centro de inglés y de formación

unread,
Nov 14, 2016, 8:27:27 AM11/14/16
to OrientDB
Can I get records without this parameters?

"@type": "d",
"@rid": "#21:2",
"@version": 1,
"@class": "EHR",

Thanks

Oleksandr Gubchenko

unread,
Nov 14, 2016, 8:51:48 AM11/14/16
to OrientDB
Try this query:

select expand(@this.exclude('@type','@rid','@version','@class')) from v

Academia Learning Centro de inglés y de formación

unread,
Nov 14, 2016, 9:13:25 AM11/14/16
to orient-...@googlegroups.com
Hi,

I have tried, it has worked with some properties and with others, you would not know why?


{
    "result": [
        {
            "@type": "d",
            "@rid": "#67:0",
            "@version": 1,
            "@class": "pueblo",
            "name": "malagon"
        },
        {
            "@type": "d",
            "@rid": "#68:0",
            "@version": 1,
            "@class": "pueblo",
            "name": "pozuelo"
        },
        {
            "@type": "d",
            "@rid": "#69:0",
            "@version": 1,
            "@class": "pueblo",
            "name": "valenzuela"
        }
    ],
    "notification": "Query executed in 0.038 sec. Returned 3 record(s)"
}



select expand(@this.exclude('@type','@rid','@version','@class')) from pueblo
{
    "result": [
        {
            "@type": "d",
            "@version": 1,
            "name": "malagon"
        },
        {
            "@type": "d",
            "@version": 1,
            "name": "pozuelo"
        },
        {
            "@type": "d",
            "@version": 1,
            "name": "valenzuela"
        }
    ],
    "notification": "Query executed in 0.039 sec. Returned 3 record(s)"
}


Oleksandr Gubchenko

unread,
Nov 14, 2016, 9:35:21 AM11/14/16
to OrientDB
I think you can't do it, because when you use select you get always back a document("@type": "d",) with its version.
Message has been deleted

Academia Learning Centro de inglés y de formación

unread,
Nov 15, 2016, 3:16:48 AM11/15/16
to OrientDB
The problem is that the resulting json with these attributes does not validate my application schema.

Oleksandr Gubchenko

unread,
Nov 15, 2016, 3:27:25 AM11/15/16
to OrientDB
You can open a feature-request on github.

Academia Learning Centro de inglés y de formación

unread,
Nov 16, 2016, 5:00:07 AM11/16/16
to OrientDB
HELP

alessand...@gmail.com

unread,
Nov 17, 2016, 6:21:46 AM11/17/16
to OrientDB
Hi,
you can see tha answer by @tglman

No is not possible to get out record without metadata, this are needed to reassociate the persistent data in case of update.

Best regards,
Alessandro
Reply all
Reply to author
Forward
0 new messages