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

Custom index cannot be created if "on" field is empty #216

Open
joppino opened this issue Mar 8, 2020 · 0 comments
Open

Custom index cannot be created if "on" field is empty #216

joppino opened this issue Mar 8, 2020 · 0 comments

Comments

@joppino
Copy link

joppino commented Mar 8, 2020

Hello there,

I'm trying to define a custom index on a model, but the index is not on a specific field. The definition in cassandra is like this:
CREATE CUSTOM INDEX xxxx_index ON keyspace.table_name () USING 'com.xxx.xxxx.xxx.Index' WITH OPTIONS = { ...yadda yadda yadda

So when I'm defining the custom index in my model definition I'd expect this to work:
custom_indexes: [
{
on: "",
using: "com.xxxx.xxxx.xxxx.Index",
options: {... yadda yadda yadda

But it doesn't:
apollo.model.validator.invalidschema: custom_index must have an 'on' attribute with string value and value must be a valid field name

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

1 participant