Can't use backlinks if a link with the same name is computed
See original GitHub issue- EdgeDB Version: 1.0b2+ga7130d5c7.cv202104290000
- OS Version: macOS Big Sur / MacBook Air (M1, 2020) / Memory: 8 GB
Steps to Reproduce:
Simplified Schema;
using extension graphql;
module default {
type User {
required property email -> str {
constraint exclusive;
}
multi link entries := .<author[IS Entry];
}
type Entry {
link author -> User;
link topic := .<entries[IS Topic];
}
type Topic {
multi link entries -> Entry;
}
};
GraphQL Query;
User {
email
entries {
topic {
id
}
}
}
When trying to use this query I am getting “QueryError: relation "edgedbpub.718fcee6-e765-11eb-9572-8bb96a65cb68_t" does not exist” error
With the following schema change it’s working well. I think this is a name collision issue. I wonder if this is a bug or am I doing something wrong?
using extension graphql;
module default {
type User {
required property email -> str {
constraint exclusive;
}
multi link entries := .<author[IS Entry];
}
type Entry {
link author -> User;
link topic := .<topic_entries[IS Topic];
}
type Topic {
multi link topic_entries -> Entry;
}
};
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Not All Backlinks Are Created Equal - Neil Patel
If you want to get found online, you need a strong backlink profile. The problem? Not all backlinks are created equal. Links from...
Read more >How to Determine the Value of a Backlink
There are tons of factors that determine the real value of a backlink. Factors that let you know the link you just earned...
Read more >Backlink Analysis: How to Spot Quality and Toxic Backlinks
This guide will break down the difference between quality and toxic backlinks, show you how to evaluate them, and show you how to...
Read more >Closing The Backlink Gap: What It Takes To Outrank Your ...
To calculate the link gap, your focus should be on the number of meaningful links. The easiest way to get that number is...
Read more >How to Check Backlinks: 7 Tremendous Backlink Checker Tools
However, if you want a backlink to add value to your site, it needs to be a natural link. There are opportunities that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It looks like we do now produce a proper error when trying to create the schema:
cannot follow backlink 'entries' because link 'entries' of object type 'default::User' is computed
@kafein yeah, this will either be fixed or made to produce an error (though I think probably fixed). It shouldn’t be blocking you though, since you can work around it with a name change?