(t *testing.T)
| 163 | } |
| 164 | |
| 165 | func TestVectorSchema(t *testing.T) { |
| 166 | require.NoError(t, client.DropAll()) |
| 167 | |
| 168 | hc, err := dc.HTTPClient() |
| 169 | require.NoError(t, err) |
| 170 | hc.LoginIntoNamespace("groot", "password", 0) |
| 171 | |
| 172 | schema := `type Project { |
| 173 | id: ID! |
| 174 | title: String! @search(by: [exact]) |
| 175 | title_v: [Float!] |
| 176 | }` |
| 177 | |
| 178 | // add schema |
| 179 | require.NoError(t, hc.UpdateGQLSchema(schema)) |
| 180 | require.Error(t, hc.UpdateGQLSchema(fmt.Sprintf(graphQLVectorSchema, "euclidean"))) |
| 181 | } |
| 182 | |
| 183 | func TestVectorGraphQlEuclideanIndexMutationAndQuery(t *testing.T) { |
| 184 | require.NoError(t, client.DropAll()) |
nothing calls this directly
no test coverage detected