Spaces:
Running
Running
// _ _ | |
// __ _____ __ ___ ___ __ _| |_ ___ | |
// \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ | |
// \ V V / __/ (_| |\ V /| | (_| | || __/ | |
// \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| | |
// | |
// Copyright © 2016 - 2024 Weaviate B.V. All rights reserved. | |
// | |
// CONTACT: [email protected] | |
// | |
package test | |
// import ( | |
// "encoding/json" | |
// "testing" | |
// "github.com/weaviate/weaviate/test/helper" | |
// "github.com/stretchr/testify/assert" | |
// ) | |
// func TestNetworkAggregate(t *testing.T) { | |
// result := AssertGraphQL(t, helper.RootAuth, ` | |
// { | |
// Network { | |
// Aggregate{ | |
// RemoteWeaviateForAcceptanceTest { | |
// Things { | |
// Instruments(groupBy:["name"]) { | |
// volume { | |
// count | |
// } | |
// } | |
// } | |
// } | |
// } | |
// } | |
// } | |
// `) | |
// volume := result.Get("Network", "Aggregate", "RemoteWeaviateForAcceptanceTest", "Things", "Instruments").Result | |
// expected := []interface{}{ | |
// map[string]interface{}{ | |
// "volume": map[string]interface{}{ | |
// "count": json.Number("82"), | |
// }, | |
// }, | |
// } | |
// assert.Equal(t, expected, volume) | |
// } | |