mirror of
				https://github.com/graphql-python/graphene.git
				synced 2025-10-30 23:47:55 +03:00 
			
		
		
		
	Update UPGRADE-v2.0.md
This commit is contained in:
		
							parent
							
								
									48754046b2
								
							
						
					
					
						commit
						1e20e2bff3
					
				|  | @ -27,8 +27,9 @@ developer has to write to use them. | ||||||
| 
 | 
 | ||||||
| ### Simpler resolvers | ### Simpler resolvers | ||||||
| 
 | 
 | ||||||
| All the resolvers in graphene have been simplified. If before resolvers required | All the resolvers in graphene have been simplified. | ||||||
| four arguments `root`, `args`, `context` and `info`, now the `args` are passed as keyword arguments, `info` will be always passed after `root` or `self` and `context` is now inside `info` (`info.context`). | Prior to Graphene `2.0`, all resolvers required four arguments: `(root, args, context, info)`. | ||||||
|  | Now, resolver `args` are passed as keyword arguments to the function, and `context` argument dissapeared in favor of `info.context`. | ||||||
| 
 | 
 | ||||||
| Before: | Before: | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user