Hey there! Does anyone have an example how I woul...
# kgraphql
n
Hey there! Does anyone have an example how I would use
wrap
? I’m specifically trying to harness it for Authentication purposes but I can’t seem to figure it out.
I saw the documentation that shows this:
Copy code
wrap {
  authenticate(optional = true, build = it)
}
But I still can’t grasp exactly what it does nor exactly how to wrap a route.