Query on a composite results in "is not indexed on this node"

I have a model that I compiled. I was then successful at creating a couple of instances by issuing the following command a couple of times:

mutation {
    createClaim
        (input: { content: { by: "Steve", claim: "My second Claim", round: "round one", credit: 1 } }) {
        document {
            by
        }
    }
}

Now I am trying to query using this command:

query {
  ClaimIndex(first: 10) {
    edges {
      node {
        by
      }
    }
  }
}

When I run that query I am getting the following error:

{
  "errors": [
    {
      "message": "HTTP request to 'http://0.0.0.0:7007/api/v0/collection' failed with status 'Internal Server Error': {\"error\":\"Query failed: Model kjzl6hvfrbw6c5pfgu3i3gwnw9ml34806mbdgdvuxnduy5dlo5ft34eix8nkr2m is not indexed on this node\"}",
      "locations": [
        {
          "line": 33,
          "column": 3
        }
      ],
      "path": [
        "claimIndex"
      ]
    }
  ],
  "data": {
    "claimIndex": null
  }

}

I am new to composedb, so I’m sure it’s a basic problem, but I just haven’t had any luck solving this on my own. Any help would be appreciated.

Did you deploy the composite to your Ceramic node?
composedb composite:deploy my-first-composite.json --ceramic-url=http://localhost:7007

Thank you so much…that was it. Sorry for the newbie question.

2 Likes

No worries! Glad you were able to get it working!

1 Like