Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-04-2021 12:12 AM
CALL apoc.meta.relTypeProperties({rels: ["MEMBRE_DE"]}) returns no result even if call db.schema.relTypeProperties() return propertynames for "MEMBRE_DE" Relationship type
Do you have any idea why apoc.meta.relTypeProperties() and db.schema.relTypeProperties() returns different results ?
05-14-2021 12:08 AM
Doas anybody have an idea why apoc.meta.relTypeProperties() and db.schema.relTypeProperties() provide different results ?
05-15-2021 01:32 PM
Hello @o.boussekey
Did you try the function without specifying anything in the config
parameter? Can you try:
CALL apoc.meta.relTypeProperties({includeRels: ["MEMBRE_DE"]})
Can you also show us the result of db.schema.relTypeProperties()
?
Regards,
Cobra
05-16-2021 12:04 AM
Hello Cobra, here are the results of the 2 calls :
05-16-2021 12:56 AM
Hello @o.boussekey
It's because you added ``
to your labels and relationship types so this query should work:
CALL apoc.meta.relTypeProperties({includeRels: ["`MEMBRE_DE`"]})
Regards,
Cobra
05-16-2021 05:14 AM
Hello Cobra,
Thanks a lot for your help. I've tried but unfortunatelyy, I have the same result : nothing :
Any other idea ?
05-16-2021 05:16 AM
Can you take a screenshot of the left panel where I can see labels and relationship types please.
05-16-2021 05:23 AM
05-16-2021 05:27 AM
That's weird...
Try:
CALL apoc.meta.relTypeProperties({includeRels: [":`MEMBRE_DE`"]})
05-16-2021 05:32 AM
Same result :
05-16-2021 05:55 AM
Which version of Neo4j do you have and which version of APOC do you use?
05-16-2021 11:13 PM
I'm using Neo4j 4.2.0 (Aura Free) and APOC 4.3.0-rc01
05-17-2021 12:15 AM
Can you try to upgrade the version of Neo4j?
05-17-2021 10:50 PM
Hello Cobra,
Unfortunately, I can't upgrade the version because it's running on Neo4J Aura.
I have the same results with a Neo4j desktop install (version 4.2.4)
05-18-2021 12:29 AM
I took a look at the documentation and normally it should work based on what I see on the screenshots:
CALL apoc.meta.relTypeProperties({rels: ["MEMBRE_DE"]});
If not, you have to raise an issue on Github.
Regards,
Cobra
05-21-2021 01:07 AM
Thx a lot for your help Cobra, I'll raise an issue on Github.
have a nice day
All the sessions of the conference are now available online