-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIT License? #1
Comments
Ofcourse, geel free for a pull request. Also this library is not finished
yet!
Op zo 13 okt. 2019 05:15 schreef Tony Narlock <[email protected]>:
… Saw your issue at 99designs/gqlgen#646
<99designs/gqlgen#646>, i can't use LGPL. Can
you do MIT (same license as gqlgen)?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=ABRRARKAXQEHQNM3TRGQAJLQOKHGJA5CNFSM4JAFHXYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRNAUQA>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRRARJ5MCBTWNGRUHURKJ3QOKHGJANCNFSM4JAFHXYA>
.
|
@tony Basic converts are working now for most of the basic types! func UserToGraphQL(m *models.User) *graphql_models.User {
if m == nil {
return nil
}
r := &graphql_models.User{
ID: UintToStringUniqueID(m.ID, "User"),
Name: m.Name,
LastName: m.LastName,
Email: m.Email,
Password: m.Password,
RememberToken: NullDotStringToPointerString(m.RememberToken),
CreatedAt: NullDotTimeToPointerInt(m.CreatedAt),
UpdatedAt: NullDotTimeToPointerInt(m.UpdatedAt),
DeletedAt: NullDotTimeToPointerInt(m.DeletedAt),
SendNotificationsOnNewCalamity: BoolToInt(m.SendNotificationsOnNewCalamity),
}
if UintIsZero(m.RoleID) {
if m.R == nil || m.R.Role == nil {
r.Role = RoleWithUintID(m.RoleID)
} else {
r.Role = RoleToGraphQL(m.R.Role)
}
}
return r
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Saw your issue at 99designs/gqlgen#646, i can't use LGPL. Can you do MIT (same license as gqlgen)?
The text was updated successfully, but these errors were encountered: