question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
msullivancommented, Sep 7, 2021

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

1reaction
msullivancommented, Sep 6, 2021

@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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found