Hi, thank you for answering me.
An example:

{
    "result": [
        {
            "@type": "d",
            "@rid": "#21:0",
            "@version": 1,
            "@class": "Curso",
            "City": {
                "@type": "d",
                "@version": 0,
                "@class": "City",
                "name": "Valenzuela"
            },
            "name": "curso 1"
        },
        {
            "@type": "d",
            "@rid": "#25:0",
            "@version": 1,
            "@class": "City",
            "name": "bolaños"
        },
        {
            "@type": "d",
            "@rid": "#26:0",
            "@version": 1,
            "@class": "City",
            "name": "almagro"
        },
        {
            "@type": "d",
            "@rid": "#25:0",
            "@version": 1,
            "@class": "Country",
            "City": {
                "@type": "d",
                "@version": 0,
                "@class": "City",
                "name": "Madrid"
            },
            "name": "curso 1"
        },
    ]

}

I want to get all the cities, in total 4.
But I do not know what classes are embedded
I need something like:

Select * from City

Select * from V where @class = 'City'


And get the 4 cities (2 records and 2 embedded)

thanks





El martes, 8 de noviembre de 2016, 13:00:47 (UTC+1), user.w...@gmail.com 
escribió:
>
> Hi,
>
> can you explain it better? 
> can you give me an example of your structure?
>
> Thx in advance.
>
> Regards,
> Michela
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to orient-database+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to