![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
github.com/maximeheckel/graphql-query-builder
A simple graphQL query builder built in Golang
To install the library run:
go get github.com/MaximeHeckel/graphql-query-builder/querybuilder
Here's a simple example which shows how to build a simple query using the library.
package main
import (
"log"
"github.com/MaximeHeckel/graphql-query-builder/querybuilder"
)
func main() {
filter := querybuilder.NewQueryFilter(map[string]interface{}{"testfilter": "1234"})
// NewQuery constructs the query
// Filter is an optional argument to the constructor to set a parameter to
// run the query against
query, _ := querybuilder.NewQuery("test", filter)
query2, _ := querybuilder.NewQuery("nestedQuery")
// Set an alias for the result of this query
query2.SetAlias("myNestedQuery")
// User find to set the properties to be returned from the query
query2.Find([]interface{}{"nestedValue"})
query.Find([]interface{}{"value", map[string]string{"hello": "test"}, map[string]int{"world": 2}, map[string]*querybuilder.Query{"testquery": query2}})
// ToString() returns the string representation of the method
log.Println(query.ToString())
}
To run the tests:
go test -v
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.