Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection Link not working, causes gatsby error #4

Open
kevinfoerster opened this issue Jun 25, 2018 · 1 comment
Open

Collection Link not working, causes gatsby error #4

kevinfoerster opened this issue Jun 25, 2018 · 1 comment

Comments

@kevinfoerster
Copy link

When referencing an item from a different collection, i get this error:

error UNHANDLED REJECTION


  TypeError: Cannot read property 'internal' of null
  
  - infer-graphql-input-fields.js:222 
    [gatsby]/dist/schema/infer-graphql-input-fields.js:222:38

i have a products collection and a contacts collection and each product has multiple contacts associated, the api call directly lists at least the id and title (as shown in cockpit)

{
    entries: [
        {
            title: "product",
            _mby: "5a79af33952bedoc680234702",
            _by: "5a79af33952bedoc680234702",
            _modified: 1529919171,
            _created: 1529671390,
            _id: "5b2ceedeae80fdoc1943926982",
            slug: "product",
            contacts: [
                {
                    _id: "5b2cef7aa48bbdoc2013865485",
                    link: "contacts",
                    display: "max mustermann"
                }
            ]
        }
    ]
}

and the matching contacts entry

{
    entries: [
        {
            name: "max mustermann",
            email: "[email protected]",
            phone: "",
            _mby: "5a79af33952bedoc680234702",
            _by: "5a79af33952bedoc680234702",
            _modified: 1529918980,
            _created: 1529671546,
            _id: "5b2cef7aa48bbdoc2013865485",
            picture: {
                path: "storage/uploads/2018/06/22/5b2cf00f5f72ame.jpg"
            }
        }
    ],
}
@mpartipilo
Copy link
Owner

Thanks for your detailed input. Collection Link was added to Cockpit after my latest update to the plugin.

I have been working on some improvements, I will make sure these work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants