Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bradford-hamilton/go-graphql-api
/ functions
Functions
9 in github.com/bradford-hamilton/go-graphql-api
⨍
Functions
9
◇
Types & classes
6
↓ 1 callers
Function
ConnString
ConnString returns a connection string based on the parameters it's given This would normally also contain the password, however we're not using one
postgres/postgres.go:34
↓ 1 callers
Function
ExecuteQuery
ExecuteQuery runs our graphql queries
gql/gql.go:10
↓ 1 callers
Method
GetUsersByName
GetUsersByName is called within our user query for graphql
postgres/postgres.go:51
↓ 1 callers
Method
GraphQL
GraphQL returns an http.HandlerFunc for our /graphql endpoint
server/server.go:22
↓ 1 callers
Function
New
New makes a new database using the connection string and returns it, otherwise returns the error
postgres/postgres.go:18
↓ 1 callers
Function
NewRoot
NewRoot returns base query type. This is where we add all the base queries
gql/queries.go:14
↓ 1 callers
Function
initializeAPI
()
main.go:27
Method
UserResolver
UserResolver resolves our user query through a db call to GetUserByName
gql/resolvers.go:14
Function
main
()
main.go:17