--- title: Itembase keywords: fastai sidebar: home_sidebar nb_path: "nbs/itembase.ipynb" ---
With the Item and Edge classes we can create an item and its surrounding graph. The schema is defined in schema.py, in general we want to use the from_data staticmethod to generate new items, because it ensures that edges are linked from both the source and the target object. Let's make an email item and create it in the pod.
item = EmailMessage.from_data(content="example content field")