Skip to content

Commit

Permalink
Typeref#withSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
tpolecat committed May 7, 2024
1 parent 48f548a commit 8f6ae2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/core/src/main/scala/schema.scala
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ case class TypeRef private[grackle] (schema: Schema, name: String) extends Named
def description: Option[String] = dealias.description

def directives: List[Directive] = dealias.directives

def withSchema(newSchema: Schema): TypeRef =
copy(schema = newSchema)
}

/**
Expand Down

0 comments on commit 8f6ae2a

Please sign in to comment.