Skip to content

422 error on creating classes with references: invalid dataType: reference property to nonexistent class #44

@amirhouieh

Description

@amirhouieh

I am trying to build something similar to the Wikipedia example in typescript and node.
It seems in the npm client, there is no create schema method, and hence I have to create classes async in different API calls, but in doing so I get 422 error: invalid dataType: reference property to a nonexistent class. I am not sure if this is the cause of the problem or something else.

  • There was a related conversation on Weaviate Slack, suggesting changing vectorizier would make it work (for example text2vec-transformers do not work but text2vec-contextionary does. In my case none works.
const schemaClasses = [
   ArticleClass,
   ParagraphClass
]

for await (classObj in schemaClasses){
   await client.schema.classCreator().withClass(classObj)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions