Created
September 12, 2021 06:51
-
-
Save percybolmer/1789ed3feacc60601a046cc8f13c2907 to your computer and use it in GitHub Desktop.
graphql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package schemas | |
import ( | |
"github.com/graphql-go/graphql" | |
"github.com/programmingpercy/gopheragency/gopher" | |
) | |
// modifyJobArgs are arguments available for the modifyJob Mutation request | |
var modifyJobArgs = graphql.FieldConfigArgument{ | |
"employeeid": &graphql.ArgumentConfig{ | |
// Create a string argument that cannot be empty | |
Type: graphql.NewNonNull(graphql.String), | |
}, | |
"jobid": &graphql.ArgumentConfig{ | |
Type: graphql.NewNonNull(graphql.String), | |
}, | |
// The new start date to apply if set | |
"start": &graphql.ArgumentConfig{ | |
Type: graphql.String, | |
}, | |
// The new end date to apply if set | |
"end": &graphql.ArgumentConfig{ | |
Type: graphql.String, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment