NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 40 min
Place each API fix in the layer that holds the facts it needs: scope checks with the action, field rules in resolvers and limits keyed to the business object.
Sam Okoro joins the call at 11:30 with a practical question. Ledgerline runs a gateway in front of the API, a rule there can be changed in an afternoon, and a code release takes a week. "Can we close all three at the gateway?" For one of them a gateway can do much of the work. For the other two it would block what you tested and leave the cause where it is.
An API request usually passes three places where a decision can be made. A gateway is a server in front of the application that routes requests and applies rules before application code runs. A handler is the code that serves one route. A resolver is the function in a GraphQL server that produces the value of one field. A fix works when it sits in a layer that knows enough to decide correctly, for every way into the thing being protected. Choosing that layer is desk work: you send nothing to try out a proposal, and a retest waits for the fix and follows the week five rules, clean up included.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in