github.com/weaviate/weaviate@v1.24.6/adapters/handlers/graphql/local/aggregate/explore_argument.go (about)

     1  //                           _       _
     2  // __      _____  __ ___   ___  __ _| |_ ___
     3  // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \
     4  //  \ V  V /  __/ (_| |\ V /| | (_| | ||  __/
     5  //   \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___|
     6  //
     7  //  Copyright © 2016 - 2024 Weaviate B.V. All rights reserved.
     8  //
     9  //  CONTACT: hello@weaviate.io
    10  //
    11  
    12  package aggregate
    13  
    14  import (
    15  	"github.com/tailor-inc/graphql"
    16  	"github.com/weaviate/weaviate/adapters/handlers/graphql/local/common_filters"
    17  )
    18  
    19  func nearVectorArgument(className string) *graphql.ArgumentConfig {
    20  	return common_filters.NearVectorArgument("AggregateObjects", className)
    21  }
    22  
    23  func nearObjectArgument(className string) *graphql.ArgumentConfig {
    24  	return common_filters.NearObjectArgument("AggregateObjects", className)
    25  }