mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-11-04 01:47:45 +03:00 
			
		
		
		
	
							parent
							
								
									d95163c61d
								
							
						
					
					
						commit
						a4681ce6b2
					
				| 
						 | 
					@ -29,7 +29,7 @@ This middleware only continues evaluation if the ``field_name`` is not ``'user'`
 | 
				
			||||||
.. code:: python
 | 
					.. code:: python
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class AuthorizationMiddleware(object):
 | 
					    class AuthorizationMiddleware(object):
 | 
				
			||||||
        def resolve(self, next, root, info, **args):
 | 
					        def resolve(next, root, info, **args):
 | 
				
			||||||
            if info.field_name == 'user':
 | 
					            if info.field_name == 'user':
 | 
				
			||||||
                return None
 | 
					                return None
 | 
				
			||||||
            return next(root, info, **args)
 | 
					            return next(root, info, **args)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user