// withGrant sets the old Grant of the mutation.
withGrant sets the old Grant of the mutation.
// withGrant sets the old Grant of the mutation .
func withGrant(node *Grant) grantOption {
	return func(m *GrantMutation) {
		m.oldValue = func(context.Context) (*Grant, error) {
			return node, nil
		}
		m.id = &node.ID
	}
}
func withGrant ( node * Grant ) grantOption { return func ( m * GrantMutation ) { m . oldValue = func ( context . Context ) ( * Grant , error ) { return node , nil } m . id = & node . ID } }
withGrant sets the old Grant of the mutation.
withGrant sets the old Grant of the mutation .